Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.TestGyrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gyrator.v1|gyrator.v2|gyrator.i1|gyrator.i2",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator") translateModel(ModelicaTest.Electrical.Analog.TestGyrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gyrator.v1|gyrator.v2|gyrator.i1|gyrator.i2",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 178.6 kB / 18.09 MB, free: 3.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 223.3 MB / 242.1 MB, free: 9.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00082/0.0008201, allocations: 101.6 kB / 293.3 MB, free: 10.6 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4054/0.4054, allocations: 44.14 MB / 388.5 MB, free: 38.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000386/0.000386, allocations: 12 kB / 461.1 MB, free: 1.371 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.35, allocations: 61.88 MB / 0.5107 GB, free: 37.87 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.4702, allocations: 86.39 MB / 0.5951 GB, free: 8.734 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.4705, allocations: 75.94 kB / 0.5951 GB, free: 8.664 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003258/0.4737, allocations: 1.535 MB / 0.5966 GB, free: 7.125 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4738, allocations: 0 / 0.5966 GB, free: 7.125 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.4738, allocations: 4 kB / 0.5966 GB, free: 7.121 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000373/0.4741, allocations: 379.4 kB / 0.597 GB, free: 6.695 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.4742, allocations: 8.031 kB / 0.597 GB, free: 6.688 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.4742, allocations: 12.84 kB / 0.597 GB, free: 6.676 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.4744, allocations: 180.2 kB / 0.5972 GB, free: 6.461 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.4744, allocations: 8.609 kB / 0.5972 GB, free: 6.453 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.181e-05/0.4744, allocations: 12.38 kB / 0.5972 GB, free: 6.441 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002163/0.4746, allocations: 134 kB / 0.5974 GB, free: 6.305 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.4747, allocations: 192 / 0.5974 GB, free: 6.305 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.4747, allocations: 7.938 kB / 0.5974 GB, free: 6.297 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.4747, allocations: 7.938 kB / 0.5974 GB, free: 6.289 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.4748, allocations: 63.91 kB / 0.5974 GB, free: 6.227 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007318/0.4756, allocations: 0.7298 MB / 0.5981 GB, free: 5.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.023e-05/0.4756, allocations: 165.1 kB / 0.5983 GB, free: 5.258 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.903e-05/0.4757, allocations: 84.14 kB / 0.5984 GB, free: 5.172 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.4757, allocations: 75.28 kB / 0.5984 GB, free: 5.098 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.4758, allocations: 113.8 kB / 0.5986 GB, free: 4.977 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.4758, allocations: 0 / 0.5986 GB, free: 4.977 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 6.725e-05/0.4758, allocations: 33.69 kB / 0.5986 GB, free: 4.938 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.4759, allocations: 126.7 kB / 0.5987 GB, free: 4.801 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.476, allocations: 154.9 kB / 0.5989 GB, free: 4.641 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.476, allocations: 25.7 kB / 0.5989 GB, free: 4.609 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.859e-05/0.4761, allocations: 119.7 kB / 0.599 GB, free: 4.488 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.616e-06/0.4761, allocations: 3.984 kB / 0.599 GB, free: 4.484 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-06/0.4761, allocations: 4 kB / 0.599 GB, free: 4.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4763, allocations: 322.8 kB / 0.5993 GB, free: 4.156 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.395e-05/0.4763, allocations: 4 kB / 0.5993 GB, free: 4.152 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.382e-05/0.4763, allocations: 45.14 kB / 0.5994 GB, free: 4.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.72e-05/0.4764, allocations: 57.03 kB / 0.5994 GB, free: 4.016 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4764, allocations: 0 / 0.5994 GB, free: 4.016 MB / 410.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001328/0.4765, allocations: 77.62 kB / 0.5995 GB, free: 3.934 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.4765, allocations: 4 kB / 0.5995 GB, free: 3.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4766, allocations: 4 kB / 0.5995 GB, free: 3.926 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.4766, allocations: 0 / 0.5995 GB, free: 3.926 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.608e-05/0.4766, allocations: 15.98 kB / 0.5995 GB, free: 3.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.4767, allocations: 0 / 0.5995 GB, free: 3.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.797e-05/0.4767, allocations: 15.84 kB / 0.5995 GB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.4767, allocations: 7.938 kB / 0.5995 GB, free: 3.887 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001084/0.4768, allocations: 193.6 kB / 0.5997 GB, free: 3.688 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.915e-05/0.4769, allocations: 109 kB / 0.5998 GB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.338e-05/0.477, allocations: 116.8 kB / 0.5999 GB, free: 3.453 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.625e-05/0.477, allocations: 180.3 kB / 0.6001 GB, free: 3.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.625e-05/0.4771, allocations: 176.8 kB / 0.6003 GB, free: 3.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.155e-05/0.4772, allocations: 180.2 kB / 0.6004 GB, free: 2.906 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.4774, allocations: 449.1 kB / 0.6009 GB, free: 2.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.3e-05/0.4775, allocations: 104.9 kB / 0.601 GB, free: 2.301 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.731e-05/0.4775, allocations: 116.9 kB / 0.6011 GB, free: 2.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.429e-05/0.4776, allocations: 180.2 kB / 0.6013 GB, free: 1.996 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.4776, allocations: 180.2 kB / 0.6014 GB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-05/0.4777, allocations: 176.3 kB / 0.6016 GB, free: 1.633 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.145e-05/0.4778, allocations: 188.2 kB / 0.6018 GB, free: 1.441 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001247/0.4779, allocations: 311.7 kB / 0.6021 GB, free: 1.113 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.272e-05/0.478, allocations: 189.9 kB / 0.6023 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.8e-05/0.4781, allocations: 176.3 kB / 0.6024 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.435e-05/0.4782, allocations: 116.9 kB / 0.6025 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.574e-05/0.4782, allocations: 176.3 kB / 0.6027 GB, free: 432 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.4783, allocations: 105 kB / 0.6028 GB, free: 320 kB / 410.7 MB Notification: Performance of sorting global known variables: time 7.219e-05/0.4784, allocations: 112.6 kB / 0.6029 GB, free: 208 kB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4784, allocations: 3.938 kB / 0.6029 GB, free: 204 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002537/0.4786, allocations: 19.84 kB / 0.6029 GB, free: 184 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.000111/0.4787, allocations: 174.5 kB / 0.6031 GB, free: 0 / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.034e-05/0.4788, allocations: 19.98 kB / 0.6031 GB, free: 15.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4788, allocations: 7.938 kB / 0.6031 GB, free: 15.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.332e-06/0.4788, allocations: 0 / 0.6031 GB, free: 15.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.4792, allocations: 0.5202 MB / 0.6036 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003464/0.4796, allocations: 284.3 kB / 0.6039 GB, free: 15.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.4798, allocations: 0.6926 MB / 0.6046 GB, free: 14.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.602e-05/0.4798, allocations: 11.98 kB / 0.6046 GB, free: 14.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.89e-05/0.4799, allocations: 7.438 kB / 0.6046 GB, free: 14.41 MB / 426.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4799, allocations: 0 / 0.6046 GB, free: 14.41 MB / 426.7 MB Notification: Performance of Templates: time 0.002042/0.4819, allocations: 372.6 kB / 0.605 GB, free: 14.04 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestGyrator/TestGyrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches