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.002176/0.002176, allocations: 181.1 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.997/1.997, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001103/0.001103, allocations: 88.48 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006808/0.0006809, allocations: 11.98 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3362, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1582/0.4945, allocations: 102.3 MB / 476.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.4948, allocations: 71.97 kB / 476.9 MB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.668/1.163, allocations: 127.5 MB / 0.5902 GB, free: 23.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.285e-06/1.163, allocations: 0 / 0.5902 GB, free: 23.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001716/1.163, allocations: 48 kB / 0.5903 GB, free: 23.1 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.008691/1.172, allocations: 3.571 MB / 0.5937 GB, free: 19.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/1.172, allocations: 12.03 kB / 0.5938 GB, free: 19.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009123/1.173, allocations: 414.9 kB / 0.5942 GB, free: 19.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006597/1.179, allocations: 2.46 MB / 0.5966 GB, free: 16.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.581e-05/1.18, allocations: 40.95 kB / 0.5966 GB, free: 16.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/1.18, allocations: 48 kB / 0.5966 GB, free: 16.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/1.182, allocations: 0.865 MB / 0.5975 GB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/1.182, allocations: 4 kB / 0.5975 GB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/1.182, allocations: 24 kB / 0.5975 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.07e-05/1.182, allocations: 19.98 kB / 0.5975 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002413/1.184, allocations: 0.8515 MB / 0.5984 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00849/1.193, allocations: 3.294 MB / 0.6016 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/1.195, allocations: 0.6142 MB / 0.6022 GB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05134/1.246, allocations: 36.05 MB / 0.6374 GB, free: 1.445 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/1.248, allocations: 385.5 kB / 0.6378 GB, free: 1.059 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.779e-06/1.248, allocations: 7.938 kB / 0.6378 GB, free: 1.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.004384/1.252, allocations: 1.482 MB / 0.6392 GB, free: 15.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001545/1.252, allocations: 277 kB / 0.6395 GB, free: 15.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005631/1.258, allocations: 2.706 MB / 0.6421 GB, free: 12.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000151/1.258, allocations: 37.7 kB / 0.6421 GB, free: 12.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/1.26, allocations: 1.302 MB / 0.6434 GB, free: 11.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002679/1.26, allocations: 161.7 kB / 0.6436 GB, free: 10.94 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.871e-05/1.26, allocations: 16 kB / 0.6436 GB, free: 10.93 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/1.26, allocations: 346.8 kB / 0.6439 GB, free: 10.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/1.262, allocations: 261.8 kB / 0.6442 GB, free: 10.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001402/1.263, allocations: 0.6673 MB / 0.6448 GB, free: 9.453 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/1.264, allocations: 348.5 kB / 0.6452 GB, free: 9.113 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/1.264, allocations: 4 kB / 0.6452 GB, free: 9.109 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003119/1.267, allocations: 0.952 MB / 0.6461 GB, free: 8.148 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.249e-05/1.267, allocations: 13.41 kB / 0.6461 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/1.268, allocations: 79.98 kB / 0.6462 GB, free: 8.059 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.175e-05/1.268, allocations: 20 kB / 0.6462 GB, free: 8.039 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/1.269, allocations: 212.1 kB / 0.6464 GB, free: 7.832 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4e-05/1.269, allocations: 35.8 kB / 0.6464 GB, free: 7.797 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00209/1.271, allocations: 122.9 kB / 0.6466 GB, free: 7.676 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/1.271, allocations: 75.98 kB / 0.6466 GB, free: 7.602 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.001442/1.273, allocations: 455.9 kB / 0.6471 GB, free: 7.148 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007677/1.274, allocations: 403.1 kB / 0.6474 GB, free: 6.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00584/1.279, allocations: 1.297 MB / 0.6487 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/1.28, allocations: 4 kB / 0.6487 GB, free: 5.441 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/1.28, allocations: 0 / 0.6487 GB, free: 5.441 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/1.28, allocations: 0 / 0.6487 GB, free: 5.441 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006518/1.286, allocations: 2.342 MB / 0.651 GB, free: 3.027 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000161/1.286, allocations: 76.05 kB / 0.6511 GB, free: 2.953 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009253/1.287, allocations: 99.86 kB / 0.6512 GB, free: 2.855 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-05/1.287, allocations: 7.984 kB / 0.6512 GB, free: 2.848 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/1.287, allocations: 31.98 kB / 0.6512 GB, free: 2.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.119e-05/1.287, allocations: 11.95 kB / 0.6512 GB, free: 2.805 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.287, allocations: 3.938 kB / 0.6512 GB, free: 2.801 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004148/1.292, allocations: 1.436 MB / 0.6526 GB, free: 1.324 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/1.293, allocations: 0.5156 MB / 0.6531 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005187/1.293, allocations: 8 kB / 0.6531 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/1.295, allocations: 55.95 kB / 0.6532 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/1.295, allocations: 55.94 kB / 0.6532 GB, free: 0.668 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/1.295, allocations: 36 kB / 0.6533 GB, free: 0.6328 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.2926/1.588, allocations: 2.075 MB / 0.6553 GB, free: 97.61 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.42e-07/1.588, allocations: 0 / 0.6553 GB, free: 97.61 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002404/1.59, allocations: 0.6669 MB / 0.656 GB, free: 97.61 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.001702/1.592, allocations: 0.872 MB / 0.6568 GB, free: 97.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002558/1.595, allocations: 0.8506 MB / 0.6576 GB, free: 97.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.595, allocations: 3.938 kB / 0.6576 GB, free: 97.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/1.596, allocations: 474.8 kB / 0.6581 GB, free: 97.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002927/1.599, allocations: 0.5191 MB / 0.6586 GB, free: 97.22 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/1.609, allocations: 5.213 MB / 0.6637 GB, free: 94.81 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001589/1.611, allocations: 1.78 MB / 0.6654 GB, free: 94.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005697/1.612, allocations: 165.2 kB / 0.6656 GB, free: 94.08 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/1.612, allocations: 0 / 0.6656 GB, free: 94.08 MB / 426.7 MB Notification: Performance of Templates: time 0.07987/1.691, allocations: 38.33 MB / 0.703 GB, free: 89.22 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