Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.007568/0.007568, allocations: 114.5 kB / 21.97 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 214.9 kB / 25.28 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 207.6 MB / 236 MB, free: 9.98 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 48.25 kB / 348 MB, free: 10 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3336, allocations: 49.16 MB / 397.2 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02461/0.3582, allocations: 20.37 MB / 417.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0156/0.3738, allocations: 5.984 MB / 423.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005497/0.3793, allocations: 147.9 kB / 423.7 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004586/0.3839, allocations: 1.409 MB / 425.1 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007268/0.3912, allocations: 1.957 MB / 427 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003333/0.3945, allocations: 1.282 MB / 428.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.4051, allocations: 6.125 MB / 434.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006845/0.412, allocations: 2.994 MB / 437.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006625/0.4186, allocations: 2.897 MB / 440.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007919/0.4265, allocations: 3.452 MB / 443.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002879/0.4294, allocations: 0.7851 MB / 444.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005853/0.4353, allocations: 1.085 MB / 445.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004247/0.4395, allocations: 1.959 MB / 447.6 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006595/0.4461, allocations: 3.349 MB / 451 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01481/0.4609, allocations: 10.33 MB / 461.3 MB, free: 3.039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.4609, allocations: 4 kB / 461.3 MB, free: 3.035 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4609, allocations: 0 / 461.3 MB, free: 3.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003667/0.4613, allocations: 3.938 kB / 461.3 MB, free: 3.031 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01906/0.4803, allocations: 6.656 MB / 467.9 MB, free: 12.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.615e-05/0.4804, allocations: 11.98 kB / 468 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001877/0.4806, allocations: 134.5 kB / 468.1 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001638/0.4822, allocations: 0.6961 MB / 468.8 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00499/0.4872, allocations: 1.036 MB / 469.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00733/0.4946, allocations: 3.276 MB / 473.1 MB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003665/0.4949, allocations: 390.4 kB / 473.5 MB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001108/0.496, allocations: 0.4999 MB / 474 MB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0151/0.5111, allocations: 6.775 MB / 480.8 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000211/0.5113, allocations: 11.89 kB / 480.8 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009328/0.5123, allocations: 208 kB / 481 MB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003185/0.5126, allocations: 242.2 kB / 481.2 MB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01401/0.5266, allocations: 5.748 MB / 487 MB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04178/0.5684, allocations: 20.55 MB / 0.4956 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007439/0.5758, allocations: 3.672 MB / 0.4992 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003672/0.5795, allocations: 1.921 MB / 0.5011 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01235/0.5918, allocations: 5.493 MB / 0.5064 GB, free: 9.152 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/0.5919, allocations: 52.56 kB / 0.5065 GB, free: 9.09 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 3.867e-06/0.5919, allocations: 4 kB / 0.5065 GB, free: 9.086 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.0213/0.6132, allocations: 9.5 MB / 0.5158 GB, free: 15.56 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.6133, allocations: 77.41 kB / 0.5158 GB, free: 15.47 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006677/0.6199, allocations: 2.904 MB / 0.5187 GB, free: 12.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004593/0.6204, allocations: 61.7 kB / 0.5187 GB, free: 12.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0024/0.6228, allocations: 2.423 MB / 0.5211 GB, free: 10.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001301/0.6241, allocations: 0.8018 MB / 0.5219 GB, free: 9.242 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001437/0.6255, allocations: 0.5179 MB / 0.5224 GB, free: 8.715 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.6257, allocations: 305.1 kB / 0.5227 GB, free: 8.414 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002582/0.6283, allocations: 1.271 MB / 0.5239 GB, free: 7.141 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003213/0.6315, allocations: 2.171 MB / 0.526 GB, free: 4.566 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00602/0.6375, allocations: 3.676 MB / 0.5296 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.151e-05/0.6376, allocations: 8 kB / 0.5296 GB, free: 496 kB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.009191/0.6468, allocations: 4.293 MB / 0.5338 GB, free: 12.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/0.6468, allocations: 20 kB / 0.5339 GB, free: 12.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-05/0.6469, allocations: 35.92 kB / 0.5339 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/0.6482, allocations: 0.5099 MB / 0.5344 GB, free: 11.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/0.6509, allocations: 0.6942 MB / 0.5351 GB, free: 10.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.6615, allocations: 9.686 MB / 0.5445 GB, free: 0.6328 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003129/0.6646, allocations: 171.8 kB / 0.5447 GB, free: 476 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004999/0.6651, allocations: 132 kB / 0.5448 GB, free: 344 kB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003369/0.6685, allocations: 1.516 MB / 0.5463 GB, free: 14.81 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001003/0.6695, allocations: 337.8 kB / 0.5466 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007231/0.6767, allocations: 3.625 MB / 0.5502 GB, free: 10.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.481e-05/0.6768, allocations: 23.94 kB / 0.5502 GB, free: 10.78 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.628e-05/0.6768, allocations: 8 kB / 0.5502 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.582e-05/0.6768, allocations: 11.95 kB / 0.5502 GB, free: 10.76 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01917/0.696, allocations: 8.209 MB / 0.5582 GB, free: 2.422 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/0.696, allocations: 4 kB / 0.5582 GB, free: 2.418 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/0.6978, allocations: 379.5 kB / 0.5586 GB, free: 2.047 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/0.6998, allocations: 0.7286 MB / 0.5593 GB, free: 1.293 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002277/0.7, allocations: 59.97 kB / 0.5593 GB, free: 1.234 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2307/0.9307, allocations: 15.79 MB / 0.5748 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.9307, allocations: 6.438 kB / 0.5748 GB, free: 131.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009416/0.9401, allocations: 5.321 MB / 0.58 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002064/0.9422, allocations: 0.6024 MB / 0.5806 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005029/0.9427, allocations: 53.41 kB / 0.5806 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001611/0.9443, allocations: 127 kB / 0.5807 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005803/0.9449, allocations: 180.5 kB / 0.5809 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/0.945, allocations: 66.62 kB / 0.581 GB, free: 129.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003233/0.9483, allocations: 1.969 MB / 0.5829 GB, free: 128.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.9483, allocations: 0 / 0.5829 GB, free: 128.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004542/0.9528, allocations: 0.9354 MB / 0.5838 GB, free: 128.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008734/0.9616, allocations: 6.013 MB / 0.5897 GB, free: 125.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004699/0.9663, allocations: 3.683 MB / 0.5933 GB, free: 123.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.9663, allocations: 0 / 0.5933 GB, free: 123.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002962/0.9692, allocations: 2.558 MB / 0.5958 GB, free: 122.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00316/0.9724, allocations: 0.8503 MB / 0.5966 GB, free: 122.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0461/1.018, allocations: 33.18 MB / 0.629 GB, free: 90.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003979/1.022, allocations: 3.298 MB / 0.6322 GB, free: 87.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001937/1.024, allocations: 0.7655 MB / 0.633 GB, free: 86.64 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/1.027, allocations: 1.936 MB / 0.6349 GB, free: 84.71 MB / 478.1 MB Notification: Performance of SimCode: time 1.263e-06/1.027, allocations: 0 / 0.6349 GB, free: 84.71 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.143/1.169, allocations: 84.86 MB / 0.7177 GB, free: 15.71 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.85/18.02, allocations: 4.938 kB / 0.7177 GB, free: 15.71 MB / 494.1 MB " [Timeout remaining time 642] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 655] Reference file matches [Calling sys.exit(0), Time elapsed: 29.50596445199335]