Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001673/0.001674, allocations: 114.4 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001938/0.001938, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.838/1.838, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 48.16 kB / 280.2 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1351, allocations: 46.64 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01545/0.1507, allocations: 13.89 MB / 340.8 MB, free: 6.738 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02819/0.1789, allocations: 19.49 MB / 360.3 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004741/0.1837, allocations: 27.88 kB / 360.3 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004483/0.1883, allocations: 1.059 MB / 361.3 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01124/0.1996, allocations: 1.946 MB / 363.3 MB, free: 128 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006329/0.2059, allocations: 1.207 MB / 364.5 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01229/0.2183, allocations: 6.406 MB / 370.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.2197, allocations: 461.1 kB / 371.3 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001947/0.2217, allocations: 0.9795 MB / 372.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002088/0.2238, allocations: 1.083 MB / 373.4 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003776/0.2242, allocations: 76 kB / 373.5 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005744/0.2299, allocations: 1.159 MB / 374.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004149/0.2304, allocations: 337.5 kB / 375 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001866/0.2322, allocations: 1.389 MB / 376.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2372/0.4694, allocations: 3.738 MB / 380.1 MB, free: 24.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.4694, allocations: 1.375 kB / 380.1 MB, free: 24.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.4695, allocations: 2.719 kB / 380.1 MB, free: 24.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001039/0.4696, allocations: 0 / 380.1 MB, free: 24.29 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005193/0.4748, allocations: 3.707 MB / 383.8 MB, free: 22.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.4748, allocations: 10.53 kB / 383.8 MB, free: 22.21 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001438/0.475, allocations: 97.55 kB / 383.9 MB, free: 22.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004127/0.4754, allocations: 396.2 kB / 384.3 MB, free: 21.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/0.4792, allocations: 2.457 MB / 386.8 MB, free: 21.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.215e-05/0.4792, allocations: 38.72 kB / 386.8 MB, free: 21.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.4793, allocations: 52.11 kB / 386.9 MB, free: 21.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.4808, allocations: 0.7289 MB / 387.6 MB, free: 21.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.4808, allocations: 0 / 387.6 MB, free: 21.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-05/0.4809, allocations: 21.81 kB / 387.6 MB, free: 21.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/0.4809, allocations: 22.48 kB / 387.6 MB, free: 21.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.4825, allocations: 0.8185 MB / 388.4 MB, free: 21.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004691/0.4872, allocations: 3.061 MB / 391.5 MB, free: 20.58 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.4883, allocations: 0.5823 MB / 392.1 MB, free: 20.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009914/0.4893, allocations: 0.6516 MB / 392.7 MB, free: 20.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02495/0.5143, allocations: 30.19 MB / 422.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007162/0.515, allocations: 366.6 kB / 423.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.575e-06/0.5151, allocations: 0 / 423.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002022/0.5171, allocations: 1.099 MB / 424.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.5171, allocations: 56.72 kB / 424.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003505/0.5207, allocations: 2.958 MB / 427.4 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.975e-05/0.5207, allocations: 33.7 kB / 427.4 MB, free: 6.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.522, allocations: 1.492 MB / 428.9 MB, free: 5.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.5222, allocations: 170.3 kB / 429.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003114/0.5225, allocations: 226.1 kB / 429.3 MB, free: 4.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.5226, allocations: 345.9 kB / 429.6 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005402/0.5232, allocations: 237.9 kB / 429.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008233/0.524, allocations: 0.6102 MB / 430.5 MB, free: 3.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.5254, allocations: 0.891 MB / 431.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.5254, allocations: 4 kB / 431.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001936/0.5274, allocations: 1.23 MB / 432.6 MB, free: 1.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.5274, allocations: 8 kB / 432.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/0.5275, allocations: 87.92 kB / 432.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.827e-05/0.5276, allocations: 20 kB / 432.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006574/0.5282, allocations: 200.8 kB / 432.9 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.696e-05/0.5283, allocations: 22.28 kB / 432.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009613/0.5293, allocations: 115.1 kB / 433.1 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.9e-05/0.5294, allocations: 64 kB / 433.1 MB, free: 0.7891 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005969/0.53, allocations: 427.2 kB / 433.5 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003762/0.5303, allocations: 383.5 kB / 433.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002629/0.533, allocations: 1.207 MB / 435.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.533, allocations: 4 kB / 435.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.533, allocations: 9.578 kB / 435.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.533, allocations: 3.984 kB / 435.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003105/0.5361, allocations: 2.104 MB / 437.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.104e-05/0.5362, allocations: 73.95 kB / 437.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004298/0.5367, allocations: 94.92 kB / 437.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.5367, allocations: 0 / 437.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.476e-05/0.5368, allocations: 39.92 kB / 437.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.221e-05/0.5368, allocations: 7 kB / 437.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5368, allocations: 0 / 437.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002163/0.539, allocations: 1.301 MB / 438.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006262/0.5396, allocations: 480.2 kB / 439.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002878/0.5399, allocations: 12 kB / 439.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006271/0.5405, allocations: 26.78 kB / 439.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.5407, allocations: 68 kB / 439.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-05/0.5408, allocations: 36 kB / 439.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002153/0.5429, allocations: 1.92 MB / 441.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.323e-06/0.5429, allocations: 0 / 441.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001147/0.5441, allocations: 0.5879 MB / 441.9 MB, free: 7.969 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003436/0.5475, allocations: 2.55 MB / 444.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.5491, allocations: 0.8252 MB / 445.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.5491, allocations: 0 / 445.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007124/0.5498, allocations: 449.9 kB / 445.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/0.5515, allocations: 0.5118 MB / 446.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03589/0.5874, allocations: 21.89 MB / 468.1 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/0.5885, allocations: 1.667 MB / 469.7 MB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001178/0.5897, allocations: 365.3 kB / 470.1 MB, free: 9.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001162/0.5909, allocations: 1.222 MB / 471.3 MB, free: 8.598 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5909, allocations: 0 / 471.3 MB, free: 8.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.26/2.851, allocations: 60.1 MB / 0.519 GB, free: 12.49 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003018/2.851, allocations: 214.8 kB / 0.5192 GB, free: 12.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.491/8.343, allocations: 0 / 0.5192 GB, free: 12.23 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches