Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.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.Magnetic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.V_m|reluctance.Phi|permeance.V_m|permeance.Phi",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents") translateModel(ModelicaTest.Magnetic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.V_m|reluctance.Phi|permeance.V_m|permeance.Phi",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 200.8 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 226.5 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007709/0.0007709, allocations: 93.31 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1783/0.1783, allocations: 44.83 MB / 392 MB, free: 9.301 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002719/0.000272, allocations: 4 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09095, allocations: 62.95 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.001665/0.09264, allocations: 1.408 MB / 0.5167 GB, free: 1.328 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000142/0.0928, allocations: 91.62 kB / 0.5168 GB, free: 1.238 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.828e-05/0.09285, allocations: 4 kB / 0.5168 GB, free: 1.234 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.007e-05/0.09289, allocations: 11.92 kB / 0.5168 GB, free: 1.223 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.104e-05/0.09294, allocations: 15.86 kB / 0.5168 GB, free: 1.207 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.929e-05/0.09303, allocations: 19.97 kB / 0.5168 GB, free: 1.188 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000108/0.09314, allocations: 99.59 kB / 0.5169 GB, free: 1.09 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.09327, allocations: 35.97 kB / 0.517 GB, free: 1.055 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.918e-05/0.09333, allocations: 31.92 kB / 0.517 GB, free: 1.023 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.348e-05/0.09339, allocations: 43.77 kB / 0.517 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.794e-05/0.09342, allocations: 4 kB / 0.517 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.573e-05/0.09344, allocations: 8 kB / 0.517 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.656e-05/0.09346, allocations: 15.97 kB / 0.5171 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.783e-05/0.09349, allocations: 41.64 kB / 0.5171 GB, free: 0.9062 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 8.715e-05/0.09359, allocations: 84.05 kB / 0.5172 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.0936, allocations: 3.938 kB / 0.5172 GB, free: 0.8203 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.0936, allocations: 0 / 0.5172 GB, free: 0.8203 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.09361, allocations: 0 / 0.5172 GB, free: 0.8203 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005504/0.09417, allocations: 415 kB / 0.5176 GB, free: 376 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.09421, allocations: 8.031 kB / 0.5176 GB, free: 368 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.22e-05/0.09425, allocations: 7.906 kB / 0.5176 GB, free: 360 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.09436, allocations: 178.9 kB / 0.5178 GB, free: 140 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.09439, allocations: 8 kB / 0.5178 GB, free: 132 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.09441, allocations: 12 kB / 0.5178 GB, free: 120 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1676/0.262, allocations: 134.9 kB / 0.5179 GB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.262, allocations: 3.938 kB / 0.5179 GB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/0.262, allocations: 2.562 kB / 0.5179 GB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.262, allocations: 3.469 kB / 0.5179 GB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000431/0.2625, allocations: 128.1 kB / 0.518 GB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006782/0.2632, allocations: 488 kB / 0.5185 GB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002469/0.2634, allocations: 94.44 kB / 0.5186 GB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.2637, allocations: 72.34 kB / 0.5187 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.295e-05/0.2637, allocations: 5.5 kB / 0.5187 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/0.2637, allocations: 36.28 kB / 0.5187 GB, free: 11.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.2637, allocations: 0 / 0.5187 GB, free: 11.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007859/0.2645, allocations: 302 kB / 0.519 GB, free: 11.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.856e-05/0.2645, allocations: 53.11 kB / 0.519 GB, free: 11.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.925e-05/0.2646, allocations: 121.7 kB / 0.5192 GB, free: 11.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.896e-06/0.2646, allocations: 30.14 kB / 0.5192 GB, free: 11.14 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.775e-05/0.2647, allocations: 112.8 kB / 0.5193 GB, free: 11.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.2647, allocations: 17.95 kB / 0.5193 GB, free: 11.04 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-06/0.2647, allocations: 1.25 kB / 0.5193 GB, free: 11.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.753e-05/0.2647, allocations: 319.3 kB / 0.5196 GB, free: 10.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.2649, allocations: 49.11 kB / 0.5197 GB, free: 10.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.2651, allocations: 69.45 kB / 0.5197 GB, free: 10.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.2653, allocations: 47.47 kB / 0.5198 GB, free: 10.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2653, allocations: 5.156 kB / 0.5198 GB, free: 10.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004138/0.2657, allocations: 171.4 kB / 0.5199 GB, free: 10.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.2657, allocations: 12.61 kB / 0.52 GB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2657, allocations: 1.438 kB / 0.52 GB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001274/0.2659, allocations: 22.58 kB / 0.52 GB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.266, allocations: 22.94 kB / 0.52 GB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006201/0.2666, allocations: 1.3 MB / 0.5213 GB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.2667, allocations: 27.3 kB / 0.5213 GB, free: 9.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2667, allocations: 2.031 kB / 0.5213 GB, free: 9.348 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.825e-05/0.2668, allocations: 116.9 kB / 0.5214 GB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/0.2668, allocations: 12.77 kB / 0.5214 GB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.894e-05/0.2669, allocations: 11.41 kB / 0.5214 GB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.2669, allocations: 5.188 kB / 0.5214 GB, free: 9.219 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2669, allocations: 0.5156 kB / 0.5214 GB, free: 9.219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2669, allocations: 1.625 kB / 0.5214 GB, free: 9.219 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005954/0.2675, allocations: 448.1 kB / 0.5219 GB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2675, allocations: 0.7812 kB / 0.5219 GB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.779e-05/0.2676, allocations: 21.38 kB / 0.5219 GB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-05/0.2677, allocations: 25.27 kB / 0.5219 GB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.2677, allocations: 3.141 kB / 0.5219 GB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000544/0.2682, allocations: 1.306 MB / 0.5232 GB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2683, allocations: 3.938 kB / 0.5232 GB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004094/0.2687, allocations: 260.8 kB / 0.5234 GB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.92e-05/0.2687, allocations: 85.61 kB / 0.5235 GB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.2687, allocations: 6.547 kB / 0.5235 GB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.2688, allocations: 17.23 kB / 0.5235 GB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.2689, allocations: 15.64 kB / 0.5236 GB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.2689, allocations: 9.047 kB / 0.5236 GB, free: 7.348 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.604e-05/0.2689, allocations: 93.36 kB / 0.5237 GB, free: 7.273 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2689, allocations: 0 / 0.5237 GB, free: 7.273 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002408/0.2692, allocations: 25.53 kB / 0.5237 GB, free: 7.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 3 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.626e-05/0.2693, allocations: 94.73 kB / 0.5238 GB, free: 7.184 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004736/0.2697, allocations: 227.2 kB / 0.524 GB, free: 7.051 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2698, allocations: 0 / 0.524 GB, free: 7.051 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.27, allocations: 171.2 kB / 0.5242 GB, free: 6.926 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.2702, allocations: 7.297 kB / 0.5242 GB, free: 6.922 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003457/0.2706, allocations: 282.6 kB / 0.5244 GB, free: 6.691 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.2707, allocations: 0.7004 MB / 0.5251 GB, free: 5.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.879e-05/0.2707, allocations: 9.25 kB / 0.5251 GB, free: 5.984 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2707, allocations: 1.219 kB / 0.5251 GB, free: 5.984 MB / 346.7 MB Notification: Performance of Templates: time 0.002826/0.2736, allocations: 1.59 MB / 0.5267 GB, free: 5.859 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/VariableComponents/VariableComponents.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches