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.001602/0.001602, allocations: 104.2 kB / 21.96 MB, free: 5.219 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.001706/0.001706, allocations: 214 kB / 25.26 MB, free: 3.129 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.755/1.755, allocations: 207.7 MB / 236.1 MB, free: 9.93 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.001763/0.001763, allocations: 51.92 kB / 348 MB, free: 9.863 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3816, allocations: 49.15 MB / 397.2 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02104/0.4026, allocations: 17.47 MB / 414.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01541/0.418, allocations: 5.712 MB / 420.3 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005382/0.4234, allocations: 152.9 kB / 420.5 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004492/0.4279, allocations: 1.349 MB / 421.8 MB, free: 7.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007318/0.4352, allocations: 1.94 MB / 423.8 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003473/0.4387, allocations: 1.249 MB / 425 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.4497, allocations: 6.119 MB / 431.1 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005209/0.4549, allocations: 2.99 MB / 434.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005486/0.4604, allocations: 2.909 MB / 437 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007731/0.4681, allocations: 3.452 MB / 440.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002922/0.471, allocations: 0.7812 MB / 441.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004773/0.4758, allocations: 1.058 MB / 442.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003032/0.4789, allocations: 1.967 MB / 444.3 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006955/0.4858, allocations: 2.672 MB / 447 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01644/0.5022, allocations: 10.38 MB / 457.4 MB, free: 6.645 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.5023, allocations: 0 / 457.4 MB, free: 6.645 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.5023, allocations: 0 / 457.4 MB, free: 6.645 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003098/0.5026, allocations: 0 / 457.4 MB, free: 6.645 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.01757/0.5201, allocations: 6.656 MB / 464 MB, free: 15.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/0.5202, allocations: 11.98 kB / 464 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001549/0.5204, allocations: 134.5 kB / 464.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001032/0.5214, allocations: 0.7038 MB / 464.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004447/0.5258, allocations: 1.036 MB / 465.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006911/0.5327, allocations: 3.272 MB / 469.2 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003456/0.5331, allocations: 394.4 kB / 469.6 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008401/0.5339, allocations: 0.5038 MB / 470.1 MB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/0.5469, allocations: 7.001 MB / 477.1 MB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.547, allocations: 11.95 kB / 477.1 MB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000493/0.5475, allocations: 208 kB / 477.3 MB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002719/0.5478, allocations: 242.2 kB / 477.5 MB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01054/0.5583, allocations: 5.74 MB / 483.3 MB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03569/0.594, allocations: 18.78 MB / 0.4903 GB, free: 9.191 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006664/0.6007, allocations: 3.646 MB / 0.4938 GB, free: 5.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003303/0.604, allocations: 1.925 MB / 0.4957 GB, free: 3.797 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01175/0.6157, allocations: 4.986 MB / 0.5006 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.466e-05/0.6158, allocations: 56.56 kB / 0.5006 GB, free: 14.72 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 6.052e-06/0.6158, allocations: 0 / 0.5006 GB, free: 14.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02286/0.6387, allocations: 9.489 MB / 0.5099 GB, free: 5.207 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.588e-05/0.6388, allocations: 73.41 kB / 0.51 GB, free: 5.125 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00528/0.644, allocations: 2.908 MB / 0.5128 GB, free: 2.207 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002139/0.6443, allocations: 61.7 kB / 0.5129 GB, free: 2.141 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002211/0.6465, allocations: 2.423 MB / 0.5152 GB, free: 15.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008964/0.6474, allocations: 0.8057 MB / 0.516 GB, free: 14.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008777/0.6482, allocations: 0.514 MB / 0.5165 GB, free: 14.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.6484, allocations: 305.1 kB / 0.5168 GB, free: 14.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002189/0.6506, allocations: 1.274 MB / 0.5181 GB, free: 12.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002949/0.6535, allocations: 2.204 MB / 0.5202 GB, free: 10.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005122/0.6587, allocations: 3.672 MB / 0.5238 GB, free: 6.102 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.86e-05/0.6587, allocations: 8 kB / 0.5238 GB, free: 6.094 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008153/0.6668, allocations: 4.293 MB / 0.528 GB, free: 1.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.273e-05/0.6669, allocations: 20 kB / 0.528 GB, free: 1.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.802e-05/0.6669, allocations: 28 kB / 0.528 GB, free: 1.723 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.6682, allocations: 0.5211 MB / 0.5286 GB, free: 1.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002603/0.6708, allocations: 0.6903 MB / 0.5292 GB, free: 500 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.6809, allocations: 9.623 MB / 0.5386 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003059/0.6839, allocations: 171.8 kB / 0.5388 GB, free: 6.129 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002214/0.6841, allocations: 128 kB / 0.5389 GB, free: 6.004 MB / 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.003068/0.6872, allocations: 1.52 MB / 0.5404 GB, free: 4.473 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005871/0.6878, allocations: 337.9 kB / 0.5407 GB, free: 4.141 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006594/0.6944, allocations: 3.618 MB / 0.5442 GB, free: 488 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.299e-05/0.6944, allocations: 31.94 kB / 0.5443 GB, free: 456 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/0.6944, allocations: 8 kB / 0.5443 GB, free: 448 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.97e-05/0.6944, allocations: 11.95 kB / 0.5443 GB, free: 436 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01349/0.7079, allocations: 7.742 MB / 0.5519 GB, free: 8.555 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.537e-05/0.7079, allocations: 7.938 kB / 0.5519 GB, free: 8.547 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.7096, allocations: 375.4 kB / 0.5522 GB, free: 8.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/0.7115, allocations: 0.7254 MB / 0.5529 GB, free: 7.43 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001703/0.7117, allocations: 59.97 kB / 0.553 GB, free: 7.371 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2495/0.9612, allocations: 15.68 MB / 0.5683 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/0.9612, allocations: 7.906 kB / 0.5683 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009259/0.9704, allocations: 5.319 MB / 0.5735 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001684/0.9721, allocations: 0.6 MB / 0.5741 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004122/0.9725, allocations: 52.27 kB / 0.5741 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/0.974, allocations: 133.2 kB / 0.5743 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004961/0.9745, allocations: 178.6 kB / 0.5744 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/0.9747, allocations: 69.5 kB / 0.5745 GB, free: 132.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00317/0.9779, allocations: 1.967 MB / 0.5764 GB, free: 131.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9779, allocations: 1.062 kB / 0.5764 GB, free: 131.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003275/0.9811, allocations: 0.9336 MB / 0.5773 GB, free: 131.8 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.008094/0.9892, allocations: 6.032 MB / 0.5832 GB, free: 129.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005162/0.9944, allocations: 3.682 MB / 0.5868 GB, free: 127.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.9944, allocations: 0 / 0.5868 GB, free: 127.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003128/0.9975, allocations: 2.558 MB / 0.5893 GB, free: 125.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003397/1.001, allocations: 0.8406 MB / 0.5901 GB, free: 125.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04169/1.043, allocations: 33.16 MB / 0.6225 GB, free: 95.69 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002217/1.045, allocations: 2.782 MB / 0.6252 GB, free: 92.86 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00187/1.047, allocations: 0.7634 MB / 0.626 GB, free: 92.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/1.048, allocations: 1.94 MB / 0.6279 GB, free: 90.16 MB / 478.1 MB Notification: Performance of SimCode: time 1.202e-06/1.048, allocations: 0 / 0.6279 GB, free: 90.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1337/1.182, allocations: 86.86 MB / 0.7127 GB, free: 3.105 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.37/18.55, allocations: 3.953 kB / 0.7127 GB, free: 3.102 MB / 478.1 MB " [Timeout remaining time 641] (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: 30.02084268105682]