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.001311/0.001311, allocations: 109.4 kB / 17.73 MB, free: 5.336 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.001372/0.001372, allocations: 192.2 kB / 18.67 MB, free: 4.402 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.418/1.418, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001767/0.001767, allocations: 55.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09904/0.1008, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2026/0.3034, allocations: 14.02 MB / 388.7 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02417/0.3276, allocations: 19.73 MB / 408.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003632/0.3313, allocations: 94.31 kB / 408.5 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004285/0.3357, allocations: 1.199 MB / 409.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009694/0.3454, allocations: 2.258 MB / 411.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00538/0.3508, allocations: 1.394 MB / 413.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.3622, allocations: 6.341 MB / 419.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008842/0.3632, allocations: 461.6 kB / 420.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001929/0.3651, allocations: 0.9915 MB / 421.1 MB, free: 84 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001667/0.3668, allocations: 1.086 MB / 422.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002416/0.367, allocations: 74.41 kB / 422.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00477/0.3718, allocations: 1.156 MB / 423.4 MB, free: 15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005884/0.3724, allocations: 325.6 kB / 423.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002335/0.3748, allocations: 1.382 MB / 425.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007574/0.3824, allocations: 3.822 MB / 429 MB, free: 9.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3824, allocations: 4 kB / 429 MB, free: 9.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3824, allocations: 0 / 429 MB, free: 9.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.658e-05/0.3825, allocations: 0 / 429 MB, free: 9.449 MB / 350.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.005954/0.3885, allocations: 3.825 MB / 432.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.3886, allocations: 12.03 kB / 432.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.3887, allocations: 98.5 kB / 432.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005417/0.3893, allocations: 417.4 kB / 433.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003784/0.3931, allocations: 2.461 MB / 435.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.345e-05/0.3931, allocations: 41 kB / 435.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.3933, allocations: 51.95 kB / 435.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.3947, allocations: 0.7343 MB / 436.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3947, allocations: 0 / 436.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.758e-05/0.3948, allocations: 16 kB / 436.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.527e-05/0.3949, allocations: 23.98 kB / 436.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/0.3965, allocations: 0.8163 MB / 437.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005501/0.402, allocations: 3.075 MB / 440.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.4033, allocations: 0.5906 MB / 441.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/0.4045, allocations: 0.6447 MB / 441.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03581/0.4403, allocations: 30.16 MB / 471.9 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008073/0.4412, allocations: 369.3 kB / 472.3 MB, free: 9.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.885e-06/0.4412, allocations: 4 kB / 472.3 MB, free: 9.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002562/0.4437, allocations: 1.11 MB / 473.4 MB, free: 8.629 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.4438, allocations: 59.41 kB / 473.4 MB, free: 8.559 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004421/0.4482, allocations: 2.956 MB / 476.4 MB, free: 5.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001703/0.4484, allocations: 37.7 kB / 476.4 MB, free: 5.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001939/0.4504, allocations: 1.502 MB / 477.9 MB, free: 4.039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003312/0.4507, allocations: 174.6 kB / 478.1 MB, free: 3.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003629/0.4511, allocations: 238.3 kB / 478.3 MB, free: 3.629 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.4513, allocations: 341.9 kB / 478.7 MB, free: 3.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006347/0.4519, allocations: 241.8 kB / 478.9 MB, free: 3.051 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008866/0.4528, allocations: 0.6025 MB / 479.5 MB, free: 2.273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.4545, allocations: 0.9012 MB / 480.4 MB, free: 1.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-06/0.4546, allocations: 3.938 kB / 480.4 MB, free: 1.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002569/0.4571, allocations: 1.251 MB / 481.7 MB, free: 15.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.4572, allocations: 8 kB / 481.7 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001225/0.4573, allocations: 90.3 kB / 481.8 MB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.551e-05/0.4573, allocations: 16 kB / 481.8 MB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00073/0.4581, allocations: 199.7 kB / 482 MB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.045e-05/0.4581, allocations: 24.66 kB / 482 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.4593, allocations: 119.4 kB / 482.1 MB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.4594, allocations: 64 kB / 482.2 MB, free: 15.43 MB / 414.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.0008704/0.4603, allocations: 441.3 kB / 482.6 MB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004656/0.4607, allocations: 401.5 kB / 483 MB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/0.4636, allocations: 1.201 MB / 484.2 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.4636, allocations: 4 kB / 484.2 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.4636, allocations: 7.922 kB / 484.2 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4637, allocations: 0 / 484.2 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.4674, allocations: 2.097 MB / 486.3 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001032/0.4675, allocations: 80.05 kB / 486.4 MB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.468, allocations: 87.86 kB / 486.5 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.468, allocations: 0 / 486.5 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.467e-05/0.4681, allocations: 39.98 kB / 486.5 MB, free: 11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4681, allocations: 0 / 486.5 MB, free: 11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.4681, allocations: 3.938 kB / 486.5 MB, free: 11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002579/0.4707, allocations: 1.319 MB / 487.8 MB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009081/0.4716, allocations: 499.3 kB / 488.3 MB, free: 9.145 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/0.4719, allocations: 8 kB / 488.3 MB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000635/0.4725, allocations: 31.95 kB / 488.4 MB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.4727, allocations: 63.89 kB / 488.4 MB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.914e-05/0.4728, allocations: 40.06 kB / 488.5 MB, free: 9.004 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002948/0.4758, allocations: 1.916 MB / 490.4 MB, free: 7.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4758, allocations: 0 / 490.4 MB, free: 7.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001657/0.4775, allocations: 0.593 MB / 491 MB, free: 6.496 MB / 414.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.004136/0.4816, allocations: 2.578 MB / 493.6 MB, free: 3.887 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001833/0.4835, allocations: 0.8179 MB / 494.4 MB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4835, allocations: 0 / 494.4 MB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008136/0.4843, allocations: 455.5 kB / 494.8 MB, free: 2.574 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/0.4865, allocations: 0.509 MB / 495.3 MB, free: 2.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0267/0.5132, allocations: 16.54 MB / 0.4999 GB, free: 1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001353/0.5146, allocations: 1.673 MB / 0.5015 GB, free: 15.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001074/0.5157, allocations: 361.3 kB / 0.5018 GB, free: 14.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001386/0.5171, allocations: 1.222 MB / 0.503 GB, free: 13.72 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5171, allocations: 0 / 0.503 GB, free: 13.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3113/0.8284, allocations: 61.12 MB / 0.5627 GB, free: 157 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.15/15.98, allocations: 4.969 kB / 0.5627 GB, free: 157 MB / 478.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches