Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [: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 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 185.3 kB / 8.138 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.191/1.191, allocations: 221.4 MB / 229.9 MB, free: 3.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009463/0.0009461, allocations: 93 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.82e-06/5.851e-06, allocations: 0 / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.229, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1059/0.3349, allocations: 103.6 MB / 490.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.3351, allocations: 72.52 kB / 490.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.7005/1.036, allocations: 214.1 MB / 0.6881 GB, free: 60.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006461/1.036, allocations: 88 kB / 0.6882 GB, free: 60.08 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.009793/1.046, allocations: 4.732 MB / 0.6928 GB, free: 57.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/1.046, allocations: 7.875 kB / 0.6929 GB, free: 57.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001512/1.048, allocations: 0.7418 MB / 0.6936 GB, free: 57.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008192/1.056, allocations: 4.495 MB / 0.698 GB, free: 56.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.949e-05/1.056, allocations: 36.25 kB / 0.698 GB, free: 56.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003938/1.056, allocations: 67.19 kB / 0.6981 GB, free: 56.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002172/1.059, allocations: 1.311 MB / 0.6994 GB, free: 56.24 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001884/1.061, allocations: 1.321 MB / 0.7006 GB, free: 56.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/1.061, allocations: 0 / 0.7006 GB, free: 56.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/1.061, allocations: 3.625 kB / 0.7006 GB, free: 56.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.443e-05/1.061, allocations: 38.12 kB / 0.7007 GB, free: 56.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/1.071, allocations: 5.685 MB / 0.7062 GB, free: 55.33 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007824/1.072, allocations: 0.6478 MB / 0.7069 GB, free: 55.31 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/1.073, allocations: 1.047 MB / 0.7079 GB, free: 55.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05649/1.129, allocations: 71.41 MB / 0.7776 GB, free: 17.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006133/1.13, allocations: 488.4 kB / 0.7781 GB, free: 17.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 3.015e-06/1.13, allocations: 0 / 0.7781 GB, free: 17.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.002268/1.132, allocations: 1.411 MB / 0.7795 GB, free: 16.42 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001809/1.132, allocations: 486 kB / 0.7799 GB, free: 15.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00537/1.138, allocations: 4.379 MB / 0.7842 GB, free: 13.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001363/1.138, allocations: 25.7 kB / 0.7842 GB, free: 13.11 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006851/1.138, allocations: 1.175 MB / 0.7854 GB, free: 12.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/1.139, allocations: 291.8 kB / 0.7857 GB, free: 12.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.462e-05/1.139, allocations: 0 / 0.7857 GB, free: 12.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/1.139, allocations: 368.3 kB / 0.786 GB, free: 11.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004754/1.139, allocations: 315.4 kB / 0.7863 GB, free: 11.44 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007109/1.14, allocations: 1.085 MB / 0.7874 GB, free: 10.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007704/1.141, allocations: 493.1 kB / 0.7878 GB, free: 9.652 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/1.141, allocations: 8 kB / 0.7878 GB, free: 9.645 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002797/1.144, allocations: 1.916 MB / 0.7897 GB, free: 7.941 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/1.144, allocations: 4 kB / 0.7897 GB, free: 7.938 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002158/1.144, allocations: 162.1 kB / 0.7899 GB, free: 7.785 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.583e-05/1.144, allocations: 39.91 kB / 0.7899 GB, free: 7.746 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/1.145, allocations: 375.3 kB / 0.7903 GB, free: 7.461 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.977e-05/1.145, allocations: 47.19 kB / 0.7903 GB, free: 7.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/1.148, allocations: 180.2 kB / 0.7905 GB, free: 7.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000178/1.148, allocations: 123.8 kB / 0.7906 GB, free: 7.152 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0002677/1.148, allocations: 175 kB / 0.7908 GB, free: 7.004 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006959/1.149, allocations: 0.7211 MB / 0.7915 GB, free: 6.277 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007484/1.157, allocations: 2.601 MB / 0.794 GB, free: 4.238 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/1.157, allocations: 7.469 kB / 0.794 GB, free: 4.234 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/1.157, allocations: 4 kB / 0.794 GB, free: 4.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/1.157, allocations: 3.75 kB / 0.794 GB, free: 4.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007662/1.164, allocations: 3.553 MB / 0.7975 GB, free: 1.355 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002226/1.165, allocations: 135.2 kB / 0.7976 GB, free: 1.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008875/1.166, allocations: 163.3 kB / 0.7978 GB, free: 1.105 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/1.166, allocations: 7.938 kB / 0.7978 GB, free: 1.098 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/1.166, allocations: 51.94 kB / 0.7978 GB, free: 1.051 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.036e-06/1.166, allocations: 7.562 kB / 0.7978 GB, free: 1.047 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.166, allocations: 4 kB / 0.7978 GB, free: 1.043 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003094/1.169, allocations: 2.051 MB / 0.7999 GB, free: 15 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/1.171, allocations: 0.9341 MB / 0.8008 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000774/1.171, allocations: 4.875 kB / 0.8008 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/1.173, allocations: 50.2 kB / 0.8008 GB, free: 14.08 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/1.173, allocations: 90.27 kB / 0.8009 GB, free: 14.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/1.173, allocations: 67.52 kB / 0.801 GB, free: 13.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.004868/1.178, allocations: 3.238 MB / 0.8041 GB, free: 11.06 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002746/1.181, allocations: 1.111 MB / 0.8052 GB, free: 9.965 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001721/1.182, allocations: 1.298 MB / 0.8065 GB, free: 8.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001842/1.184, allocations: 1.253 MB / 0.8077 GB, free: 7.633 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.184, allocations: 4.438 kB / 0.8077 GB, free: 7.629 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009119/1.185, allocations: 0.7099 MB / 0.8084 GB, free: 6.898 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005026/1.19, allocations: 1.129 MB / 0.8095 GB, free: 5.82 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1559/1.346, allocations: 5.992 MB / 0.8154 GB, free: 119.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002922/1.349, allocations: 3.02 MB / 0.8183 GB, free: 118.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.052e-06/1.349, allocations: 0 / 0.8183 GB, free: 118.9 MB / 458.7 MB Notification: Performance of Templates: time 0.08901/1.438, allocations: 52.39 MB / 0.8695 GB, free: 116 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches