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.001153/0.001153, allocations: 114.5 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.001143/0.001144, allocations: 187 kB / 18.67 MB, free: 4.406 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.389/1.389, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001293/0.001293, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08473/0.08603, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1896/0.2757, allocations: 14.03 MB / 388.7 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02466/0.3004, allocations: 19.72 MB / 408.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003581/0.304, allocations: 91.03 kB / 408.5 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004041/0.3081, allocations: 1.213 MB / 409.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01107/0.3192, allocations: 2.287 MB / 412 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005828/0.3251, allocations: 1.389 MB / 413.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01139/0.3365, allocations: 6.341 MB / 419.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008987/0.3374, allocations: 467.2 kB / 420.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001818/0.3393, allocations: 1.007 MB / 421.2 MB, free: 40 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00136/0.3406, allocations: 1.082 MB / 422.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.3408, allocations: 75.28 kB / 422.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00405/0.3449, allocations: 1.157 MB / 423.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003788/0.3453, allocations: 337.5 kB / 423.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001589/0.3469, allocations: 1.378 MB / 425.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005234/0.3522, allocations: 3.815 MB / 429 MB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3522, allocations: 3.938 kB / 429 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3522, allocations: 0 / 429 MB, free: 9.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.143e-05/0.3522, allocations: 0 / 429 MB, free: 9.379 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.005602/0.3579, allocations: 3.829 MB / 432.8 MB, free: 5.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3579, allocations: 12.03 kB / 432.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.358, allocations: 98.5 kB / 433 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004332/0.3585, allocations: 417.4 kB / 433.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003367/0.3619, allocations: 2.469 MB / 435.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.084e-05/0.3619, allocations: 37 kB / 435.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.362, allocations: 51.95 kB / 435.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.3634, allocations: 0.7265 MB / 436.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.3634, allocations: 4 kB / 436.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-05/0.3635, allocations: 23.98 kB / 436.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.3635, allocations: 19.94 kB / 436.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.365, allocations: 0.8163 MB / 437.5 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005235/0.3703, allocations: 3.087 MB / 440.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.3715, allocations: 0.5674 MB / 441.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009669/0.3725, allocations: 0.6486 MB / 441.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02951/0.402, allocations: 30.18 MB / 472 MB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007341/0.4027, allocations: 366 kB / 472.3 MB, free: 9.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.485e-06/0.4028, allocations: 0 / 472.3 MB, free: 9.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002215/0.405, allocations: 1.114 MB / 473.5 MB, free: 8.547 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.405, allocations: 59.39 kB / 473.5 MB, free: 8.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003558/0.4086, allocations: 2.952 MB / 476.5 MB, free: 5.516 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.4087, allocations: 37.64 kB / 476.5 MB, free: 5.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00196/0.4107, allocations: 1.503 MB / 478 MB, free: 3.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000307/0.411, allocations: 178.6 kB / 478.2 MB, free: 3.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004884/0.4115, allocations: 238.3 kB / 478.4 MB, free: 3.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.4117, allocations: 341.9 kB / 478.7 MB, free: 3.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000962/0.4127, allocations: 237.9 kB / 479 MB, free: 2.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.4139, allocations: 0.602 MB / 479.6 MB, free: 2.195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001944/0.4158, allocations: 0.8896 MB / 480.5 MB, free: 1.133 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.4159, allocations: 7.938 kB / 480.5 MB, free: 1.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002831/0.4187, allocations: 1.253 MB / 481.7 MB, free: 15.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.4188, allocations: 8 kB / 481.7 MB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001939/0.419, allocations: 83.98 kB / 481.8 MB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.346e-05/0.419, allocations: 20 kB / 481.8 MB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.4202, allocations: 208.2 kB / 482 MB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.958e-05/0.4202, allocations: 19.94 kB / 482.1 MB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.4219, allocations: 115.2 kB / 482.2 MB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/0.4221, allocations: 64 kB / 482.2 MB, free: 15.36 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.001264/0.4233, allocations: 437.3 kB / 482.7 MB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007589/0.4241, allocations: 409.4 kB / 483.1 MB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003956/0.4281, allocations: 1.197 MB / 484.3 MB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.4281, allocations: 19.88 kB / 484.3 MB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4281, allocations: 0 / 484.3 MB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.4282, allocations: 3.984 kB / 484.3 MB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004978/0.4332, allocations: 2.093 MB / 486.4 MB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001609/0.4333, allocations: 75.98 kB / 486.5 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008387/0.4342, allocations: 91.86 kB / 486.5 MB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.4342, allocations: 0 / 486.5 MB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.529e-05/0.4343, allocations: 32.06 kB / 486.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.291e-06/0.4343, allocations: 8.812 kB / 486.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.4343, allocations: 3.984 kB / 486.6 MB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003568/0.4379, allocations: 1.315 MB / 487.9 MB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/0.4392, allocations: 498.4 kB / 488.4 MB, free: 9.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004213/0.4396, allocations: 8 kB / 488.4 MB, free: 9.062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006953/0.4403, allocations: 28.03 kB / 488.4 MB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.4405, allocations: 71.81 kB / 488.5 MB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.495e-05/0.4406, allocations: 37.12 kB / 488.5 MB, free: 8.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0027/0.4433, allocations: 1.92 MB / 490.4 MB, free: 7.012 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4433, allocations: 0 / 490.4 MB, free: 7.012 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002036/0.4454, allocations: 0.593 MB / 491 MB, free: 6.418 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.005116/0.4505, allocations: 2.569 MB / 493.6 MB, free: 3.816 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.4522, allocations: 0.8179 MB / 494.4 MB, free: 2.973 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4522, allocations: 0 / 494.4 MB, free: 2.973 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007389/0.4529, allocations: 447.2 kB / 494.9 MB, free: 2.512 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.4549, allocations: 0.5179 MB / 495.4 MB, free: 1.996 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0251/0.48, allocations: 16.54 MB / 0.4999 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/0.4813, allocations: 1.669 MB / 0.5016 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001158/0.4824, allocations: 357.3 kB / 0.5019 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001232/0.4837, allocations: 1.226 MB / 0.5031 GB, free: 13.65 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4837, allocations: 0 / 0.5031 GB, free: 13.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2899/0.7736, allocations: 61.12 MB / 0.5628 GB, free: 157 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.35/16.13, allocations: 12.47 kB / 0.5628 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