Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_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.001811/0.001811, allocations: 106.7 kB / 16.62 MB, free: 6.812 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.002132/0.002132, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 241.2 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 51.81 kB / 300.2 MB, free: 5.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08952/0.09054, allocations: 49.45 MB / 349.7 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.012/0.1026, allocations: 14.57 MB / 364.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.19/0.2927, allocations: 20.49 MB / 384.7 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001417/0.2941, allocations: 30.41 kB / 384.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002739/0.2969, allocations: 1.086 MB / 385.9 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006657/0.3036, allocations: 1.981 MB / 387.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004861/0.3084, allocations: 1.258 MB / 389.1 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01082/0.3193, allocations: 6.538 MB / 395.6 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007645/0.3201, allocations: 464.5 kB / 396.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002295/0.3224, allocations: 1.09 MB / 397.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.324, allocations: 1.114 MB / 398.3 MB, free: 2.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002542/0.3242, allocations: 77 kB / 398.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005044/0.3293, allocations: 1.482 MB / 399.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004412/0.3298, allocations: 333.1 kB / 400.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001954/0.3317, allocations: 1.374 MB / 401.6 MB, free: 380 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005192/0.3369, allocations: 3.731 MB / 405.3 MB, free: 13.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3369, allocations: 0 / 405.3 MB, free: 13.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.337, allocations: 0 / 405.3 MB, free: 13.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.714e-05/0.337, allocations: 0 / 405.3 MB, free: 13.42 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.004666/0.3417, allocations: 3.683 MB / 409 MB, free: 9.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3417, allocations: 12.03 kB / 409 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.3418, allocations: 102.5 kB / 409.1 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000379/0.3422, allocations: 396.1 kB / 409.5 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002988/0.3452, allocations: 2.429 MB / 411.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.424e-05/0.3453, allocations: 37 kB / 411.9 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.3454, allocations: 55.89 kB / 412 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.3467, allocations: 0.7343 MB / 412.7 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.3467, allocations: 0 / 412.7 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.882e-05/0.3468, allocations: 16 kB / 412.7 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.576e-05/0.3469, allocations: 23.98 kB / 412.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.3483, allocations: 0.8124 MB / 413.6 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004783/0.3531, allocations: 3.059 MB / 416.6 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.3543, allocations: 0.5857 MB / 417.2 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009178/0.3552, allocations: 0.6399 MB / 417.9 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02724/0.3824, allocations: 30.12 MB / 448 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007517/0.3832, allocations: 377.2 kB / 448.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.335e-06/0.3832, allocations: 0 / 448.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002155/0.3854, allocations: 1.081 MB / 449.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.3855, allocations: 55.41 kB / 449.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003281/0.3888, allocations: 2.939 MB / 452.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.637e-05/0.3888, allocations: 37.7 kB / 452.5 MB, free: 9.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001283/0.3901, allocations: 1.485 MB / 453.9 MB, free: 8.328 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.3903, allocations: 165.7 kB / 454.1 MB, free: 8.164 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000304/0.3906, allocations: 230 kB / 454.3 MB, free: 7.934 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3907, allocations: 337.9 kB / 454.7 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005754/0.3913, allocations: 249.8 kB / 454.9 MB, free: 7.355 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008449/0.3921, allocations: 0.602 MB / 455.5 MB, free: 6.578 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.3935, allocations: 0.8935 MB / 456.4 MB, free: 5.516 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.365e-06/0.3935, allocations: 4 kB / 456.4 MB, free: 5.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002037/0.3956, allocations: 1.23 MB / 457.6 MB, free: 4.273 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.3956, allocations: 15.94 kB / 457.6 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001021/0.3957, allocations: 84.03 kB / 457.7 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.3957, allocations: 20 kB / 457.7 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007029/0.3965, allocations: 199.7 kB / 457.9 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-05/0.3965, allocations: 27.86 kB / 458 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00094/0.3974, allocations: 107 kB / 458.1 MB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-05/0.3975, allocations: 64 kB / 458.1 MB, free: 3.766 MB / 366.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.0006457/0.3982, allocations: 433.5 kB / 458.6 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003401/0.3985, allocations: 387.3 kB / 458.9 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002748/0.4013, allocations: 1.192 MB / 460.1 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.4013, allocations: 11.98 kB / 460.1 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.4013, allocations: 0 / 460.1 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.4013, allocations: 4 kB / 460.1 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003048/0.4044, allocations: 2.096 MB / 462.2 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.082e-05/0.4045, allocations: 68 kB / 462.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004716/0.405, allocations: 95.84 kB / 462.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.405, allocations: 4 kB / 462.4 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.849e-05/0.4051, allocations: 36.06 kB / 462.4 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.4051, allocations: 4 kB / 462.4 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4051, allocations: 3.938 kB / 462.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002103/0.4072, allocations: 1.285 MB / 463.7 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006373/0.4078, allocations: 480.1 kB / 464.2 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002967/0.4081, allocations: 11.98 kB / 464.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006732/0.4088, allocations: 39.97 kB / 464.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.409, allocations: 59.94 kB / 464.3 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.548e-05/0.4091, allocations: 36 kB / 464.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002192/0.4113, allocations: 1.907 MB / 466.3 MB, free: 11.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4113, allocations: 0 / 466.3 MB, free: 11.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001252/0.4125, allocations: 0.5777 MB / 466.8 MB, free: 10.92 MB / 382.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.003386/0.4159, allocations: 2.541 MB / 469.4 MB, free: 8.348 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.4176, allocations: 0.8332 MB / 470.2 MB, free: 7.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.4176, allocations: 0 / 470.2 MB, free: 7.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007341/0.4183, allocations: 442.9 kB / 470.6 MB, free: 7.027 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/0.4208, allocations: 0.6254 MB / 471.3 MB, free: 6.402 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03743/0.4582, allocations: 21.7 MB / 493 MB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.4593, allocations: 1.657 MB / 494.6 MB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001333/0.4607, allocations: 365.1 kB / 495 MB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/0.4618, allocations: 1.214 MB / 496.2 MB, free: 11.29 MB / 414.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4618, allocations: 0 / 496.2 MB, free: 11.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2595/0.7213, allocations: 59.81 MB / 0.543 GB, free: 147.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/0.7215, allocations: 216 kB / 0.5432 GB, free: 147 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.78/4.502, allocations: 2.219 kB / 0.5432 GB, free: 147 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches