Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 200 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.6 MB / 243.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006817/0.0006818, allocations: 102.3 kB / 295.1 MB, free: 4.383 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1745/0.1745, allocations: 44.83 MB / 392 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000235/0.000235, allocations: 8 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08784/0.08809, allocations: 62.96 MB / 0.5153 GB, free: 5.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestGyrator): time 0.001306/0.08945, allocations: 1.391 MB / 0.5167 GB, free: 3.691 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001148/0.08957, allocations: 79.7 kB / 0.5168 GB, free: 3.613 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.203e-05/0.08962, allocations: 4 kB / 0.5168 GB, free: 3.609 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.697e-05/0.08966, allocations: 11.92 kB / 0.5168 GB, free: 3.598 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.554e-05/0.08972, allocations: 15.84 kB / 0.5168 GB, free: 3.582 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.863e-05/0.08979, allocations: 19.98 kB / 0.5168 GB, free: 3.562 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 8.409e-05/0.08988, allocations: 95.59 kB / 0.5169 GB, free: 3.469 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.09001, allocations: 44.28 kB / 0.5169 GB, free: 3.422 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.858e-05/0.09004, allocations: 31.86 kB / 0.517 GB, free: 3.391 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.527e-05/0.09011, allocations: 35.84 kB / 0.517 GB, free: 3.355 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.09013, allocations: 8 kB / 0.517 GB, free: 3.348 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.357e-05/0.09015, allocations: 4 kB / 0.517 GB, free: 3.344 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.361e-05/0.09017, allocations: 19.94 kB / 0.517 GB, free: 3.324 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.09019, allocations: 41.64 kB / 0.5171 GB, free: 3.277 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 7.185e-05/0.09027, allocations: 92.02 kB / 0.5172 GB, free: 3.188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.09028, allocations: 0 / 0.5172 GB, free: 3.188 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.09029, allocations: 4 kB / 0.5172 GB, free: 3.184 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.0903, allocations: 0 / 0.5172 GB, free: 3.184 MB / 346.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.000313/0.09062, allocations: 375.3 kB / 0.5175 GB, free: 2.766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.09065, allocations: 12.03 kB / 0.5175 GB, free: 2.754 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.1e-05/0.09069, allocations: 15.81 kB / 0.5176 GB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.452e-05/0.09077, allocations: 178.9 kB / 0.5177 GB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.09079, allocations: 8.234 kB / 0.5177 GB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.09081, allocations: 12 kB / 0.5177 GB, free: 2.504 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001682/0.09098, allocations: 136.9 kB / 0.5179 GB, free: 2.359 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.091, allocations: 0 / 0.5179 GB, free: 2.359 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.09101, allocations: 4 kB / 0.5179 GB, free: 2.355 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.09102, allocations: 4 kB / 0.5179 GB, free: 2.352 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.522e-05/0.09112, allocations: 63.91 kB / 0.5179 GB, free: 2.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005416/0.09167, allocations: 0.7274 MB / 0.5187 GB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.843e-05/0.09172, allocations: 169.1 kB / 0.5188 GB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.372e-05/0.09174, allocations: 84.14 kB / 0.5189 GB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-06/0.09175, allocations: 75.28 kB / 0.519 GB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.09178, allocations: 109.8 kB / 0.5191 GB, free: 1.039 MB / 346.7 MB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.09178, allocations: 0 / 0.5191 GB, free: 1.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=0): time 5.499e-05/0.09184, allocations: 33.61 kB / 0.5191 GB, free: 1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.09188, allocations: 138.6 kB / 0.5192 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.286e-05/0.09197, allocations: 144.2 kB / 0.5194 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.509e-06/0.09198, allocations: 25.7 kB / 0.5194 GB, free: 0.668 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.8e-05/0.09202, allocations: 127.6 kB / 0.5195 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-06/0.09203, allocations: 0 / 0.5195 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-06/0.09204, allocations: 4 kB / 0.5195 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.842e-05/0.09208, allocations: 322.8 kB / 0.5198 GB, free: 216 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.274e-05/0.0921, allocations: 4 kB / 0.5198 GB, free: 212 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.963e-05/0.09212, allocations: 45.14 kB / 0.5199 GB, free: 148 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.455e-05/0.09215, allocations: 16 kB / 0.5199 GB, free: 132 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.09216, allocations: 0 / 0.5199 GB, free: 132 kB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001044/0.09227, allocations: 73.47 kB / 0.52 GB, free: 52 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.09228, allocations: 8 kB / 0.52 GB, free: 44 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.09229, allocations: 0 / 0.52 GB, free: 44 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.09231, allocations: 7.938 kB / 0.52 GB, free: 36 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.665e-05/0.09237, allocations: 8.188 kB / 0.52 GB, free: 28 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.09238, allocations: 7.953 kB / 0.52 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.071e-05/0.09243, allocations: 11.84 kB / 0.52 GB, free: 8 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.09244, allocations: 4 kB / 0.52 GB, free: 4 kB / 346.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.0001122/0.09255, allocations: 193.1 kB / 0.5202 GB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.439e-05/0.09261, allocations: 116.8 kB / 0.5203 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.219e-05/0.09266, allocations: 108.9 kB / 0.5204 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.385e-05/0.09272, allocations: 188.2 kB / 0.5206 GB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.576e-05/0.09277, allocations: 176.3 kB / 0.5208 GB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.052e-05/0.09283, allocations: 180.2 kB / 0.5209 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.09305, allocations: 441.1 kB / 0.5214 GB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.414e-05/0.09309, allocations: 109 kB / 0.5215 GB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.91e-05/0.09313, allocations: 104.9 kB / 0.5216 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.955e-05/0.09318, allocations: 180.3 kB / 0.5217 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.298e-05/0.09324, allocations: 184.2 kB / 0.5219 GB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.896e-05/0.0933, allocations: 188.1 kB / 0.5221 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.145e-05/0.09335, allocations: 180.3 kB / 0.5223 GB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001074/0.09346, allocations: 307.7 kB / 0.5225 GB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.914e-05/0.09354, allocations: 194 kB / 0.5227 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.134e-05/0.09361, allocations: 180.2 kB / 0.5229 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.716e-05/0.09369, allocations: 101.1 kB / 0.523 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.744e-05/0.09375, allocations: 188.2 kB / 0.5232 GB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.292e-05/0.09379, allocations: 105 kB / 0.5233 GB, free: 12.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.116e-05/0.09386, allocations: 113.1 kB / 0.5234 GB, free: 12.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09386, allocations: 0 / 0.5234 GB, free: 12.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002277/0.0941, allocations: 19.91 kB / 0.5234 GB, free: 12.3 MB / 362.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 9.519e-05/0.0942, allocations: 171 kB / 0.5236 GB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.465e-05/0.09427, allocations: 23.92 kB / 0.5236 GB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.09428, allocations: 384 / 0.5236 GB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.585e-06/0.09428, allocations: 4 kB / 0.5236 GB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.09462, allocations: 0.5288 MB / 0.5241 GB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003239/0.09495, allocations: 306 kB / 0.5244 GB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.09517, allocations: 0.6887 MB / 0.5251 GB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.799e-05/0.0952, allocations: 11.44 kB / 0.5251 GB, free: 10.51 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.09521, allocations: 0 / 0.5251 GB, free: 10.51 MB / 362.7 MB Notification: Performance of Templates: time 0.001713/0.09693, allocations: 0.8251 MB / 0.5259 GB, free: 9.68 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestGyrator/TestGyrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches