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.001432/0.001432, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.95/1.95, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001137, allocations: 91.67 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.045e-05/2.049e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3328, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.166/0.4989, allocations: 101.6 MB / 463.9 MB, free: 0.7031 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.4992, allocations: 71.95 kB / 464 MB, free: 0.6328 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6806/1.18, allocations: 122.1 MB / 0.5723 GB, free: 69.3 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.826e-06/1.18, allocations: 0 / 0.5723 GB, free: 69.3 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002292/1.18, allocations: 48 kB / 0.5724 GB, free: 69.26 MB / 395.1 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.006998/1.187, allocations: 2.795 MB / 0.5751 GB, free: 66.4 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/1.187, allocations: 8.031 kB / 0.5751 GB, free: 66.39 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009513/1.188, allocations: 418.9 kB / 0.5755 GB, free: 65.98 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006637/1.195, allocations: 2.435 MB / 0.5779 GB, free: 63.55 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/1.195, allocations: 19.95 kB / 0.5779 GB, free: 63.53 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001991/1.195, allocations: 39.89 kB / 0.5779 GB, free: 63.49 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00157/1.197, allocations: 0.6861 MB / 0.5786 GB, free: 62.8 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/1.198, allocations: 0.7206 MB / 0.5793 GB, free: 62.04 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/1.198, allocations: 0 / 0.5793 GB, free: 62.04 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/1.198, allocations: 0 / 0.5793 GB, free: 62.04 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.175e-05/1.198, allocations: 19.98 kB / 0.5793 GB, free: 62.02 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009677/1.208, allocations: 3.167 MB / 0.5824 GB, free: 58.8 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/1.209, allocations: 471.9 kB / 0.5829 GB, free: 58.32 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009474/1.21, allocations: 0.5732 MB / 0.5834 GB, free: 57.75 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04655/1.257, allocations: 36.19 MB / 0.6188 GB, free: 16.43 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006397/1.258, allocations: 309.7 kB / 0.6191 GB, free: 16.11 MB / 395.1 MB Notification: Performance of pre-optimization done (n=49): time 3.957e-06/1.258, allocations: 0 / 0.6191 GB, free: 16.11 MB / 395.1 MB Notification: Performance of matching and sorting (n=49): time 0.001946/1.26, allocations: 0.7934 MB / 0.6198 GB, free: 15.3 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.892e-05/1.26, allocations: 273 kB / 0.6201 GB, free: 14.98 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00514/1.265, allocations: 2.461 MB / 0.6225 GB, free: 12.52 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001697/1.265, allocations: 29.64 kB / 0.6225 GB, free: 12.49 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001532/1.267, allocations: 1.298 MB / 0.6238 GB, free: 11.18 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/1.267, allocations: 162.5 kB / 0.6239 GB, free: 11.02 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.094e-05/1.267, allocations: 0 / 0.6239 GB, free: 11.02 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 8.54e-05/1.267, allocations: 342.8 kB / 0.6243 GB, free: 10.68 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/1.268, allocations: 178.6 kB / 0.6244 GB, free: 10.5 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006581/1.268, allocations: 0.5784 MB / 0.625 GB, free: 9.723 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000689/1.269, allocations: 272.5 kB / 0.6253 GB, free: 9.453 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/1.269, allocations: 4 kB / 0.6253 GB, free: 9.449 MB / 395.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00176/1.271, allocations: 0.7177 MB / 0.626 GB, free: 8.73 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/1.271, allocations: 15.94 kB / 0.626 GB, free: 8.715 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001617/1.271, allocations: 83.98 kB / 0.6261 GB, free: 8.633 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.301e-05/1.271, allocations: 20 kB / 0.6261 GB, free: 8.613 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/1.272, allocations: 208.2 kB / 0.6263 GB, free: 8.41 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.303e-05/1.272, allocations: 27.88 kB / 0.6263 GB, free: 8.383 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002267/1.275, allocations: 107 kB / 0.6264 GB, free: 8.277 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002666/1.275, allocations: 71.95 kB / 0.6265 GB, free: 8.207 MB / 395.1 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.0002525/1.275, allocations: 140.6 kB / 0.6266 GB, free: 8.062 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007464/1.276, allocations: 403.1 kB / 0.627 GB, free: 7.664 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004504/1.281, allocations: 1.125 MB / 0.6281 GB, free: 6.527 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/1.281, allocations: 11.92 kB / 0.6281 GB, free: 6.516 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/1.281, allocations: 0 / 0.6281 GB, free: 6.516 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/1.281, allocations: 0 / 0.6281 GB, free: 6.516 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00569/1.286, allocations: 2.086 MB / 0.6301 GB, free: 4.379 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001482/1.287, allocations: 67.98 kB / 0.6302 GB, free: 4.312 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009236/1.288, allocations: 107.9 kB / 0.6303 GB, free: 4.207 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.231e-05/1.288, allocations: 4 kB / 0.6303 GB, free: 4.203 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.662e-05/1.288, allocations: 31.98 kB / 0.6304 GB, free: 4.172 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/1.288, allocations: 0 / 0.6304 GB, free: 4.172 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.288, allocations: 0 / 0.6304 GB, free: 4.172 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002391/1.29, allocations: 1.213 MB / 0.6315 GB, free: 2.914 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001556/1.292, allocations: 0.5155 MB / 0.632 GB, free: 2.375 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000768/1.292, allocations: 11.89 kB / 0.6321 GB, free: 2.363 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/1.294, allocations: 35.95 kB / 0.6321 GB, free: 2.328 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002487/1.294, allocations: 64 kB / 0.6321 GB, free: 2.266 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/1.295, allocations: 35.98 kB / 0.6322 GB, free: 2.23 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.004053/1.299, allocations: 1.82 MB / 0.634 GB, free: 428 kB / 395.1 MB Notification: Performance of sort global known variables: time 1.002e-06/1.299, allocations: 0 / 0.634 GB, free: 428 kB / 395.1 MB Notification: Performance of remove unused functions: time 0.002702/1.301, allocations: 0.6204 MB / 0.6346 GB, free: 15.79 MB / 411.1 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.002267/1.304, allocations: 0.9955 MB / 0.6355 GB, free: 14.8 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/1.306, allocations: 0.6653 MB / 0.6362 GB, free: 14.11 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.306, allocations: 4.062 kB / 0.6362 GB, free: 14.11 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008716/1.307, allocations: 387.1 kB / 0.6366 GB, free: 13.7 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003602/1.31, allocations: 0.5197 MB / 0.6371 GB, free: 13.18 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009834/1.32, allocations: 3.325 MB / 0.6403 GB, free: 9.801 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002144/1.322, allocations: 1.777 MB / 0.642 GB, free: 7.992 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005761/1.323, allocations: 175.4 kB / 0.6422 GB, free: 7.82 MB / 411.1 MB Notification: Performance of SimCode: time 3.105e-06/1.323, allocations: 3.938 kB / 0.6422 GB, free: 7.816 MB / 411.1 MB Notification: Performance of Templates: time 0.5043/1.827, allocations: 38.17 MB / 0.6795 GB, free: 88.4 MB / 411.1 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