Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,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.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,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.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002015/0.002016, allocations: 182 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.024/3.024, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.00106/0.001061, allocations: 86.42 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007178/0.0007179, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4671/0.4679, allocations: 47.57 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2276/0.6956, allocations: 102.4 MB / 478.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004664/0.6961, allocations: 79.95 kB / 478.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.551/1.247, allocations: 123.5 MB / 0.5876 GB, free: 26.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.004e-06/1.247, allocations: 4 kB / 0.5876 GB, free: 26.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.969e-05/1.247, allocations: 48 kB / 0.5876 GB, free: 26.46 MB / 378.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.005017/1.252, allocations: 3.395 MB / 0.5909 GB, free: 23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/1.252, allocations: 11.97 kB / 0.591 GB, free: 22.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003758/1.253, allocations: 396.3 kB / 0.5913 GB, free: 22.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003949/1.257, allocations: 2.578 MB / 0.5939 GB, free: 19.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.039e-05/1.257, allocations: 44.98 kB / 0.5939 GB, free: 19.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/1.257, allocations: 48 kB / 0.5939 GB, free: 19.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/1.259, allocations: 0.8613 MB / 0.5948 GB, free: 18.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/1.259, allocations: 0 / 0.5948 GB, free: 18.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-05/1.259, allocations: 27.98 kB / 0.5948 GB, free: 18.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/1.259, allocations: 24 kB / 0.5948 GB, free: 18.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/1.26, allocations: 0.867 MB / 0.5957 GB, free: 18.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005117/1.265, allocations: 3.17 MB / 0.5988 GB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/1.267, allocations: 0.6103 MB / 0.5994 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008139/1.267, allocations: 0.6749 MB / 0.6 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03291/1.3, allocations: 35.79 MB / 0.635 GB, free: 4.555 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008149/1.301, allocations: 393.3 kB / 0.6354 GB, free: 4.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.925e-06/1.301, allocations: 0 / 0.6354 GB, free: 4.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002632/1.304, allocations: 1.148 MB / 0.6365 GB, free: 3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/1.304, allocations: 277 kB / 0.6367 GB, free: 2.668 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004171/1.308, allocations: 3.007 MB / 0.6397 GB, free: 15.65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.876e-05/1.308, allocations: 37.7 kB / 0.6397 GB, free: 15.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001272/1.31, allocations: 1.509 MB / 0.6412 GB, free: 14.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/1.31, allocations: 169.7 kB / 0.6413 GB, free: 13.92 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.794e-05/1.31, allocations: 20 kB / 0.6414 GB, free: 13.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/1.31, allocations: 341.9 kB / 0.6417 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005864/1.311, allocations: 261.8 kB / 0.6419 GB, free: 13.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008315/1.311, allocations: 0.6673 MB / 0.6426 GB, free: 12.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/1.313, allocations: 0.9365 MB / 0.6435 GB, free: 11.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/1.313, allocations: 4 kB / 0.6435 GB, free: 11.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00227/1.315, allocations: 1.272 MB / 0.6448 GB, free: 10.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/1.315, allocations: 8 kB / 0.6448 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/1.315, allocations: 87.98 kB / 0.6448 GB, free: 9.957 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/1.315, allocations: 16 kB / 0.6449 GB, free: 9.941 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006922/1.316, allocations: 216.1 kB / 0.6451 GB, free: 9.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.281e-05/1.316, allocations: 27.92 kB / 0.6451 GB, free: 9.703 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/1.317, allocations: 119 kB / 0.6452 GB, free: 9.586 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/1.317, allocations: 68 kB / 0.6453 GB, free: 9.52 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001041/1.318, allocations: 443.8 kB / 0.6457 GB, free: 9.078 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/1.319, allocations: 383.4 kB / 0.6461 GB, free: 8.699 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003107/1.322, allocations: 1.256 MB / 0.6473 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/1.322, allocations: 4 kB / 0.6473 GB, free: 7.438 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/1.322, allocations: 0 / 0.6473 GB, free: 7.438 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/1.322, allocations: 3.938 kB / 0.6473 GB, free: 7.434 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003822/1.326, allocations: 2.245 MB / 0.6495 GB, free: 5.113 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.812e-05/1.326, allocations: 71.98 kB / 0.6496 GB, free: 5.043 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/1.326, allocations: 107.9 kB / 0.6497 GB, free: 4.938 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/1.326, allocations: 0 / 0.6497 GB, free: 4.938 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.21e-05/1.327, allocations: 35.98 kB / 0.6497 GB, free: 4.902 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/1.327, allocations: 3.938 kB / 0.6497 GB, free: 4.898 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/1.327, allocations: 0 / 0.6497 GB, free: 4.898 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/1.329, allocations: 1.36 MB / 0.651 GB, free: 3.508 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008793/1.33, allocations: 0.5451 MB / 0.6516 GB, free: 2.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/1.33, allocations: 15.98 kB / 0.6516 GB, free: 2.914 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006773/1.331, allocations: 47.97 kB / 0.6516 GB, free: 2.867 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/1.331, allocations: 59.94 kB / 0.6517 GB, free: 2.809 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.317e-05/1.331, allocations: 39.98 kB / 0.6517 GB, free: 2.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002754/1.334, allocations: 1.955 MB / 0.6536 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.334, allocations: 4 kB / 0.6536 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001605/1.335, allocations: 0.6555 MB / 0.6543 GB, free: 160 kB / 426.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) * 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 (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.1769/1.512, allocations: 0.8459 MB / 0.6551 GB, free: 101.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00169/1.514, allocations: 0.8543 MB / 0.6559 GB, free: 101.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.514, allocations: 6.469 kB / 0.6559 GB, free: 101.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006292/1.515, allocations: 463.1 kB / 0.6564 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/1.517, allocations: 0.4951 MB / 0.6569 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005942/1.523, allocations: 5.005 MB / 0.6617 GB, free: 99.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008563/1.524, allocations: 1.665 MB / 0.6634 GB, free: 98.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003305/1.524, allocations: 168 kB / 0.6635 GB, free: 98.46 MB / 426.7 MB Notification: Performance of SimCode: time 6.51e-07/1.524, allocations: 2.812 kB / 0.6635 GB, free: 98.46 MB / 426.7 MB Notification: Performance of Templates: time 0.05741/1.582, allocations: 38.59 MB / 0.7012 GB, free: 92.86 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches