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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002191/0.002191, allocations: 177.3 kB / 17.41 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.945/2.945, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.001135/0.001135, allocations: 88.03 kB / 271.9 MB, free: 8.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005075/0.000508, allocations: 12 kB / 328.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4246/0.4251, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2017/0.6269, allocations: 102.4 MB / 478.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003416/0.6273, allocations: 75.97 kB / 478.2 MB, free: 10.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5498/1.177, allocations: 125.4 MB / 0.5894 GB, free: 24.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.066e-06/1.177, allocations: 4 kB / 0.5894 GB, free: 24.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.366e-05/1.177, allocations: 44 kB / 0.5895 GB, free: 24.87 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.00478/1.182, allocations: 3.532 MB / 0.5929 GB, free: 21.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/1.182, allocations: 8.031 kB / 0.5929 GB, free: 21.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003291/1.183, allocations: 418.9 kB / 0.5933 GB, free: 20.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003061/1.186, allocations: 2.659 MB / 0.5959 GB, free: 18.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.574e-05/1.186, allocations: 37 kB / 0.596 GB, free: 18.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/1.186, allocations: 55.94 kB / 0.596 GB, free: 18.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/1.187, allocations: 0.8573 MB / 0.5969 GB, free: 17.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/1.187, allocations: 8 kB / 0.5969 GB, free: 17.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.119e-05/1.187, allocations: 20 kB / 0.5969 GB, free: 17.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/1.187, allocations: 19.98 kB / 0.5969 GB, free: 17.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/1.188, allocations: 0.8592 MB / 0.5977 GB, free: 16.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/1.193, allocations: 3.259 MB / 0.6009 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/1.194, allocations: 0.622 MB / 0.6015 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008199/1.195, allocations: 0.6672 MB / 0.6022 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03381/1.229, allocations: 35.81 MB / 0.6372 GB, free: 2.617 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007742/1.23, allocations: 393.4 kB / 0.6375 GB, free: 2.223 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.016e-06/1.23, allocations: 0 / 0.6375 GB, free: 2.223 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002418/1.232, allocations: 1.167 MB / 0.6387 GB, free: 1.043 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001572/1.233, allocations: 273 kB / 0.6389 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004133/1.237, allocations: 3.189 MB / 0.642 GB, free: 13.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.87e-05/1.237, allocations: 33.7 kB / 0.6421 GB, free: 13.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/1.238, allocations: 1.58 MB / 0.6436 GB, free: 11.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/1.238, allocations: 173.6 kB / 0.6438 GB, free: 11.72 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.173e-05/1.238, allocations: 20 kB / 0.6438 GB, free: 11.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/1.239, allocations: 337.9 kB / 0.6441 GB, free: 11.37 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006054/1.239, allocations: 261.9 kB / 0.6444 GB, free: 11.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008721/1.24, allocations: 0.6673 MB / 0.645 GB, free: 10.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/1.242, allocations: 0.9404 MB / 0.6459 GB, free: 9.141 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/1.242, allocations: 4 kB / 0.6459 GB, free: 9.137 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002428/1.244, allocations: 1.284 MB / 0.6472 GB, free: 7.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/1.244, allocations: 15.98 kB / 0.6472 GB, free: 7.824 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/1.244, allocations: 83.94 kB / 0.6473 GB, free: 7.742 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.665e-05/1.244, allocations: 20 kB / 0.6473 GB, free: 7.723 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007158/1.245, allocations: 212.3 kB / 0.6475 GB, free: 7.516 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.832e-05/1.245, allocations: 23.92 kB / 0.6475 GB, free: 7.492 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/1.246, allocations: 134.9 kB / 0.6477 GB, free: 7.359 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/1.247, allocations: 64 kB / 0.6477 GB, free: 7.297 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.001033/1.248, allocations: 463.8 kB / 0.6482 GB, free: 6.836 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004171/1.248, allocations: 403.1 kB / 0.6486 GB, free: 6.438 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/1.251, allocations: 1.262 MB / 0.6498 GB, free: 5.172 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/1.251, allocations: 4 kB / 0.6498 GB, free: 5.168 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/1.251, allocations: 4 kB / 0.6498 GB, free: 5.164 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/1.251, allocations: 0 / 0.6498 GB, free: 5.164 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003775/1.255, allocations: 2.326 MB / 0.6521 GB, free: 2.766 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.605e-05/1.255, allocations: 72 kB / 0.6521 GB, free: 2.695 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004814/1.255, allocations: 103.9 kB / 0.6522 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.752e-06/1.255, allocations: 4 kB / 0.6522 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/1.255, allocations: 32 kB / 0.6523 GB, free: 2.559 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.346e-06/1.255, allocations: 8 kB / 0.6523 GB, free: 2.551 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/1.256, allocations: 3.938 kB / 0.6523 GB, free: 2.547 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/1.258, allocations: 1.376 MB / 0.6536 GB, free: 1.145 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008676/1.259, allocations: 0.5117 MB / 0.6541 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002802/1.259, allocations: 19.92 kB / 0.6541 GB, free: 0.5898 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006838/1.26, allocations: 39.91 kB / 0.6542 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/1.26, allocations: 67.88 kB / 0.6542 GB, free: 496 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.827e-05/1.26, allocations: 39.98 kB / 0.6543 GB, free: 456 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.1907/1.451, allocations: 2.073 MB / 0.6563 GB, free: 97.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.451, allocations: 0 / 0.6563 GB, free: 97.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002147/1.453, allocations: 0.6572 MB / 0.657 GB, free: 97.84 MB / 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.001207/1.454, allocations: 0.8868 MB / 0.6578 GB, free: 97.74 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001518/1.456, allocations: 0.853 MB / 0.6587 GB, free: 97.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/1.456, allocations: 0 / 0.6587 GB, free: 97.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006595/1.456, allocations: 466.2 kB / 0.6591 GB, free: 97.49 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/1.459, allocations: 0.5173 MB / 0.6596 GB, free: 97.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006079/1.465, allocations: 5.223 MB / 0.6647 GB, free: 95.04 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000896/1.466, allocations: 1.711 MB / 0.6664 GB, free: 94.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/1.466, allocations: 168.5 kB / 0.6665 GB, free: 94.3 MB / 426.7 MB Notification: Performance of SimCode: time 7.31e-07/1.466, allocations: 0 / 0.6665 GB, free: 94.3 MB / 426.7 MB Notification: Performance of Templates: time 0.05909/1.525, allocations: 39.92 MB / 0.7055 GB, free: 88.49 MB / 426.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