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.001276/0.001276, allocations: 105.1 kB / 17.06 MB, free: 6.098 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.001311/0.001311, allocations: 200.1 kB / 18 MB, free: 5.168 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.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2852, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01692/0.3022, allocations: 14.71 MB / 414.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02736/0.3296, allocations: 20.68 MB / 435.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002616/0.3322, allocations: 91.25 kB / 435.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00336/0.3356, allocations: 1.231 MB / 436.9 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008629/0.3443, allocations: 2.292 MB / 439.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004727/0.3491, allocations: 1.436 MB / 440.7 MB, free: 216 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.3598, allocations: 6.493 MB / 447.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008204/0.3607, allocations: 457.1 kB / 447.6 MB, free: 9.223 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.3623, allocations: 1.081 MB / 448.7 MB, free: 8.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.3637, allocations: 1.114 MB / 449.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001996/0.3639, allocations: 72 kB / 449.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004563/0.3685, allocations: 1.479 MB / 451.4 MB, free: 5.465 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003855/0.3689, allocations: 329.6 kB / 451.7 MB, free: 5.141 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001587/0.3705, allocations: 1.374 MB / 453 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006191/0.3767, allocations: 3.787 MB / 456.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3767, allocations: 0 / 456.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3767, allocations: 0 / 456.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.518e-05/0.3767, allocations: 0 / 456.8 MB, free: 15.95 MB / 382.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.005856/0.3826, allocations: 3.817 MB / 460.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.3827, allocations: 8.031 kB / 460.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001417/0.3828, allocations: 98.52 kB / 460.8 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006172/0.3835, allocations: 417.4 kB / 461.2 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004162/0.3876, allocations: 2.449 MB / 463.6 MB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.3877, allocations: 33 kB / 463.6 MB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.3878, allocations: 59.94 kB / 463.7 MB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.3894, allocations: 0.7265 MB / 464.4 MB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3895, allocations: 0 / 464.4 MB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.51e-05/0.3896, allocations: 24 kB / 464.5 MB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.883e-05/0.3896, allocations: 19.98 kB / 464.5 MB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.3913, allocations: 0.8163 MB / 465.3 MB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006157/0.3975, allocations: 3.052 MB / 468.3 MB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.3988, allocations: 0.5712 MB / 468.9 MB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.3999, allocations: 0.6484 MB / 469.6 MB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03265/0.4326, allocations: 30.13 MB / 499.7 MB, free: 0.7266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007935/0.4334, allocations: 361.6 kB / 0.4883 GB, free: 372 kB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.4334, allocations: 0 / 0.4883 GB, free: 372 kB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002548/0.436, allocations: 1.11 MB / 0.4894 GB, free: 15.24 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.667e-05/0.4361, allocations: 59.39 kB / 0.4895 GB, free: 15.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004037/0.4401, allocations: 2.935 MB / 0.4923 GB, free: 12.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.4403, allocations: 33.7 kB / 0.4924 GB, free: 12.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001469/0.4417, allocations: 1.502 MB / 0.4938 GB, free: 10.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002179/0.442, allocations: 170.6 kB / 0.494 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003371/0.4423, allocations: 234.4 kB / 0.4942 GB, free: 10.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.4425, allocations: 334 kB / 0.4945 GB, free: 9.941 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006413/0.4431, allocations: 241.8 kB / 0.4948 GB, free: 9.707 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009508/0.4441, allocations: 0.6098 MB / 0.4954 GB, free: 8.922 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.4457, allocations: 0.8973 MB / 0.4962 GB, free: 7.852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.4457, allocations: 4 kB / 0.4962 GB, free: 7.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002396/0.4481, allocations: 1.247 MB / 0.4975 GB, free: 6.598 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.4481, allocations: 8 kB / 0.4975 GB, free: 6.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001162/0.4483, allocations: 80.84 kB / 0.4975 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.152e-05/0.4483, allocations: 23.94 kB / 0.4976 GB, free: 6.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.449, allocations: 203.7 kB / 0.4978 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.882e-05/0.4491, allocations: 31.8 kB / 0.4978 GB, free: 6.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009912/0.4501, allocations: 111.3 kB / 0.4979 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.4502, allocations: 64 kB / 0.498 GB, free: 6.086 MB / 430.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.0008105/0.451, allocations: 445.4 kB / 0.4984 GB, free: 5.641 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/0.4514, allocations: 393.5 kB / 0.4988 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002748/0.4542, allocations: 1.186 MB / 0.4999 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.4542, allocations: 4 kB / 0.4999 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.4542, allocations: 0 / 0.4999 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4543, allocations: 4 kB / 0.4999 GB, free: 4.043 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003799/0.4581, allocations: 2.1 MB / 0.502 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.746e-05/0.4582, allocations: 71.98 kB / 0.502 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/0.4587, allocations: 87.86 kB / 0.5021 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.747e-06/0.4587, allocations: 4 kB / 0.5021 GB, free: 1.711 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.04e-05/0.4588, allocations: 35.98 kB / 0.5022 GB, free: 1.676 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.4588, allocations: 0 / 0.5022 GB, free: 1.676 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.4588, allocations: 8.062 kB / 0.5022 GB, free: 1.668 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002605/0.4614, allocations: 1.323 MB / 0.5035 GB, free: 324 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008745/0.4623, allocations: 494.6 kB / 0.5039 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/0.4626, allocations: 8 kB / 0.5039 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006137/0.4632, allocations: 32.03 kB / 0.504 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.4634, allocations: 71.62 kB / 0.504 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.112e-05/0.4635, allocations: 36 kB / 0.5041 GB, free: 15.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002893/0.4664, allocations: 1.907 MB / 0.5059 GB, free: 13.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.4664, allocations: 0 / 0.5059 GB, free: 13.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001462/0.4678, allocations: 0.593 MB / 0.5065 GB, free: 13.17 MB / 446.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.003945/0.4718, allocations: 2.546 MB / 0.509 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.4736, allocations: 0.8059 MB / 0.5098 GB, free: 9.762 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.4736, allocations: 4.125 kB / 0.5098 GB, free: 9.758 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008117/0.4744, allocations: 446.9 kB / 0.5102 GB, free: 9.297 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002796/0.4772, allocations: 0.6076 MB / 0.5108 GB, free: 8.684 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02645/0.5037, allocations: 16.45 MB / 0.5269 GB, free: 7.703 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/0.5051, allocations: 1.657 MB / 0.5285 GB, free: 6.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001327/0.5064, allocations: 361.1 kB / 0.5288 GB, free: 5.66 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/0.5079, allocations: 1.214 MB / 0.53 GB, free: 4.445 MB / 462.1 MB Notification: Performance of SimCode: time 3.506e-06/0.5079, allocations: 0 / 0.53 GB, free: 4.445 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3005/0.8085, allocations: 60.73 MB / 0.5893 GB, free: 88.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.41/17.22, allocations: 9.062 kB / 0.5893 GB, free: 88.87 MB / 462.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