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.001642/0.001642, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.966/1.966, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001069/0.001069, allocations: 86.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.277e-05/3.293e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09463/0.09469, allocations: 47.57 MB / 369.1 MB, free: 2.223 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4731/0.5678, allocations: 102.2 MB / 471.3 MB, free: 7.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.5681, allocations: 71.58 kB / 471.4 MB, free: 7.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6988/1.267, allocations: 127.4 MB / 0.5847 GB, free: 89.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.267, allocations: 0 / 0.5847 GB, free: 89.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001955/1.267, allocations: 46.16 kB / 0.5847 GB, free: 89.62 MB / 410.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.006999/1.274, allocations: 2.793 MB / 0.5875 GB, free: 87.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/1.274, allocations: 18.19 kB / 0.5875 GB, free: 87.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009226/1.275, allocations: 415.6 kB / 0.5879 GB, free: 87.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006525/1.282, allocations: 2.425 MB / 0.5902 GB, free: 86.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.124e-05/1.282, allocations: 38.02 kB / 0.5903 GB, free: 86.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002163/1.282, allocations: 57.11 kB / 0.5903 GB, free: 86.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/1.284, allocations: 0.7934 MB / 0.5911 GB, free: 86.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/1.284, allocations: 4 kB / 0.5911 GB, free: 86.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/1.284, allocations: 20.31 kB / 0.5911 GB, free: 86.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.129e-05/1.284, allocations: 25.08 kB / 0.5912 GB, free: 86.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/1.286, allocations: 0.7125 MB / 0.5919 GB, free: 85.92 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00955/1.295, allocations: 3.29 MB / 0.5951 GB, free: 84.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/1.297, allocations: 489.3 kB / 0.5955 GB, free: 84.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/1.298, allocations: 0.5938 MB / 0.5961 GB, free: 83.81 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04554/1.343, allocations: 36.2 MB / 0.6315 GB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006883/1.344, allocations: 331.5 kB / 0.6318 GB, free: 43.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.897e-06/1.344, allocations: 0 / 0.6318 GB, free: 43.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001959/1.346, allocations: 0.813 MB / 0.6326 GB, free: 42.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.775e-05/1.346, allocations: 272.9 kB / 0.6328 GB, free: 42.58 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005138/1.351, allocations: 2.663 MB / 0.6354 GB, free: 39.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001653/1.352, allocations: 37.7 kB / 0.6355 GB, free: 39.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001369/1.353, allocations: 1.296 MB / 0.6367 GB, free: 38.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000223/1.353, allocations: 162.5 kB / 0.6369 GB, free: 38.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.834e-05/1.353, allocations: 16 kB / 0.6369 GB, free: 38.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.684e-05/1.353, allocations: 350.8 kB / 0.6372 GB, free: 38.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/1.354, allocations: 190.1 kB / 0.6374 GB, free: 37.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007134/1.355, allocations: 0.5971 MB / 0.638 GB, free: 37.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006664/1.355, allocations: 287.5 kB / 0.6383 GB, free: 36.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/1.355, allocations: 4 kB / 0.6383 GB, free: 36.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001831/1.357, allocations: 0.8134 MB / 0.6391 GB, free: 35.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/1.357, allocations: 9 kB / 0.6391 GB, free: 35.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001581/1.357, allocations: 83.98 kB / 0.6392 GB, free: 35.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.965e-05/1.357, allocations: 24 kB / 0.6392 GB, free: 35.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/1.359, allocations: 211.6 kB / 0.6394 GB, free: 35.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.916e-05/1.359, allocations: 27.88 kB / 0.6394 GB, free: 35.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/1.361, allocations: 134.9 kB / 0.6395 GB, free: 35.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/1.361, allocations: 60 kB / 0.6396 GB, free: 35.43 MB / 410.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.0002429/1.361, allocations: 168.6 kB / 0.6398 GB, free: 35.26 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005526/1.362, allocations: 403.1 kB / 0.6401 GB, free: 34.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004366/1.366, allocations: 1.164 MB / 0.6413 GB, free: 33.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/1.366, allocations: 8 kB / 0.6413 GB, free: 33.69 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/1.366, allocations: 0 / 0.6413 GB, free: 33.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/1.366, allocations: 7.938 kB / 0.6413 GB, free: 33.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00512/1.372, allocations: 2.187 MB / 0.6434 GB, free: 31.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001448/1.372, allocations: 71.98 kB / 0.6435 GB, free: 31.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008964/1.373, allocations: 103.9 kB / 0.6436 GB, free: 31.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/1.373, allocations: 4 kB / 0.6436 GB, free: 31.26 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-05/1.373, allocations: 39.94 kB / 0.6436 GB, free: 31.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/1.373, allocations: 4 kB / 0.6436 GB, free: 31.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.373, allocations: 3.938 kB / 0.6437 GB, free: 31.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/1.375, allocations: 1.239 MB / 0.6449 GB, free: 29.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/1.377, allocations: 0.5155 MB / 0.6454 GB, free: 29.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005514/1.377, allocations: 8 kB / 0.6454 GB, free: 29.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/1.379, allocations: 52.02 kB / 0.6454 GB, free: 29.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/1.379, allocations: 55.94 kB / 0.6455 GB, free: 29.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/1.379, allocations: 39.98 kB / 0.6455 GB, free: 29.24 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004723/1.384, allocations: 2.027 MB / 0.6475 GB, free: 27.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.61e-07/1.384, allocations: 0 / 0.6475 GB, free: 27.22 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002544/1.387, allocations: 0.6672 MB / 0.6481 GB, free: 26.55 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.001699/1.388, allocations: 0.8925 MB / 0.649 GB, free: 25.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001621/1.39, allocations: 0.7083 MB / 0.6497 GB, free: 25.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.962e-06/1.39, allocations: 384 / 0.6497 GB, free: 25.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007206/1.391, allocations: 399.1 kB / 0.6501 GB, free: 24.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/1.394, allocations: 0.5173 MB / 0.6506 GB, free: 24.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007711/1.402, allocations: 3.363 MB / 0.6539 GB, free: 20.74 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/1.403, allocations: 1.778 MB / 0.6556 GB, free: 18.94 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005665/1.403, allocations: 163.4 kB / 0.6558 GB, free: 18.78 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/1.404, allocations: 4 kB / 0.6558 GB, free: 18.77 MB / 410.7 MB Notification: Performance of Templates: time 0.3788/1.782, allocations: 38.3 MB / 0.6932 GB, free: 91.8 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