Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00269/0.00269, allocations: 176.1 kB / 8.152 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.894/1.894, allocations: 205.2 MB / 213.7 MB, free: 13.88 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001287/0.001286, allocations: 88.7 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.002e-05/1.02e-05, allocations: 4 kB / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2426, allocations: 47.55 MB / 361.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1631/0.4057, allocations: 101.5 MB / 463.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/0.406, allocations: 71.97 kB / 463.4 MB, free: 476 kB / 346.7 MB Notification: Performance of FrontEnd: time 0.5615/0.9676, allocations: 122.7 MB / 0.5724 GB, free: 68.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002383/0.9679, allocations: 48 kB / 0.5724 GB, free: 68.22 MB / 394.7 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.007373/0.9753, allocations: 2.851 MB / 0.5752 GB, free: 65.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.9753, allocations: 8.031 kB / 0.5752 GB, free: 65.31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009739/0.9763, allocations: 422.8 kB / 0.5756 GB, free: 64.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007029/0.9834, allocations: 2.436 MB / 0.578 GB, free: 62.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.9834, allocations: 16 kB / 0.578 GB, free: 62.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.9837, allocations: 39.91 kB / 0.5781 GB, free: 62.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001753/0.9855, allocations: 0.6857 MB / 0.5787 GB, free: 61.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001634/0.9871, allocations: 0.7149 MB / 0.5794 GB, free: 60.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.9872, allocations: 0 / 0.5794 GB, free: 60.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.9873, allocations: 7.938 kB / 0.5794 GB, free: 60.9 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.909e-05/0.9874, allocations: 19.98 kB / 0.5795 GB, free: 60.88 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009524/0.9969, allocations: 3.191 MB / 0.5826 GB, free: 57.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009013/0.9978, allocations: 351 kB / 0.5829 GB, free: 57.28 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.9989, allocations: 0.5415 MB / 0.5834 GB, free: 56.73 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04768/1.047, allocations: 36.07 MB / 0.6187 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006245/1.047, allocations: 289.8 kB / 0.6189 GB, free: 15.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 3.877e-06/1.047, allocations: 3.938 kB / 0.6189 GB, free: 15.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002012/1.049, allocations: 0.7779 MB / 0.6197 GB, free: 14.44 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.185e-05/1.049, allocations: 273 kB / 0.62 GB, free: 14.11 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005624/1.055, allocations: 2.457 MB / 0.6224 GB, free: 11.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001729/1.055, allocations: 29.64 kB / 0.6224 GB, free: 11.62 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002381/1.056, allocations: 393.4 kB / 0.6228 GB, free: 11.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/1.056, allocations: 161.7 kB / 0.6229 GB, free: 11.07 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.655e-05/1.056, allocations: 4 kB / 0.6229 GB, free: 11.07 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.632e-05/1.056, allocations: 342.7 kB / 0.6233 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004977/1.057, allocations: 178 kB / 0.6234 GB, free: 10.55 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000695/1.057, allocations: 0.5725 MB / 0.624 GB, free: 9.777 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007256/1.058, allocations: 268.5 kB / 0.6242 GB, free: 9.516 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/1.058, allocations: 4 kB / 0.6242 GB, free: 9.512 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001936/1.06, allocations: 0.7177 MB / 0.6249 GB, free: 8.789 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/1.06, allocations: 14.94 kB / 0.625 GB, free: 8.777 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/1.06, allocations: 83.98 kB / 0.625 GB, free: 8.695 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.953e-05/1.06, allocations: 16 kB / 0.6251 GB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001429/1.062, allocations: 219.7 kB / 0.6253 GB, free: 8.465 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.277e-05/1.062, allocations: 27.78 kB / 0.6253 GB, free: 8.438 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009226/1.063, allocations: 91.33 kB / 0.6254 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/1.063, allocations: 60 kB / 0.6254 GB, free: 8.289 MB / 394.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002175/1.063, allocations: 69.39 kB / 0.6255 GB, free: 8.215 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007869/1.064, allocations: 407.1 kB / 0.6259 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006736/1.071, allocations: 1.398 MB / 0.6273 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/1.071, allocations: 7.938 kB / 0.6273 GB, free: 6.398 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.071, allocations: 3.938 kB / 0.6273 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/1.071, allocations: 3.984 kB / 0.6273 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005394/1.076, allocations: 2.102 MB / 0.6293 GB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001476/1.076, allocations: 68 kB / 0.6294 GB, free: 4.168 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/1.077, allocations: 111.9 kB / 0.6295 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/1.077, allocations: 4 kB / 0.6295 GB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.433e-05/1.077, allocations: 28 kB / 0.6295 GB, free: 4.027 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/1.077, allocations: 7.984 kB / 0.6295 GB, free: 4.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.077, allocations: 3.906 kB / 0.6295 GB, free: 4.016 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002461/1.08, allocations: 1.186 MB / 0.6307 GB, free: 2.789 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/1.082, allocations: 0.5348 MB / 0.6312 GB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009942/1.083, allocations: 8 kB / 0.6312 GB, free: 2.223 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001813/1.084, allocations: 44.02 kB / 0.6313 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/1.085, allocations: 59.94 kB / 0.6313 GB, free: 2.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/1.085, allocations: 39.98 kB / 0.6314 GB, free: 2.082 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.004407/1.089, allocations: 1.82 MB / 0.6331 GB, free: 276 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.002756/1.092, allocations: 0.6205 MB / 0.6337 GB, free: 15.64 MB / 410.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002268/1.094, allocations: 0.9931 MB / 0.6347 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001977/1.096, allocations: 0.6774 MB / 0.6354 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.096, allocations: 4.188 kB / 0.6354 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009014/1.097, allocations: 391.1 kB / 0.6358 GB, free: 13.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003449/1.101, allocations: 0.4955 MB / 0.6362 GB, free: 13.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/1.112, allocations: 3.354 MB / 0.6395 GB, free: 9.605 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002737/1.115, allocations: 1.946 MB / 0.6414 GB, free: 7.629 MB / 410.7 MB Notification: Performance of SimCode: time 1.623e-06/1.115, allocations: 4 kB / 0.6414 GB, free: 7.625 MB / 410.7 MB Notification: Performance of Templates: time 0.2282/1.344, allocations: 38.17 MB / 0.6787 GB, free: 127.6 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches