Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.abs_V_m|reluctance.abs_Phi|permeance.abs_V_m|permeance.abs_Phi|magFluxSource.gamma",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents") translateModel(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.abs_V_m|reluctance.abs_Phi|permeance.abs_V_m|permeance.abs_Phi|magFluxSource.gamma",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009298/0.0009299, allocations: 202.9 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.305/1.305, allocations: 226.6 MB / 243.1 MB, free: 14.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007321/0.0007319, allocations: 104.9 kB / 295.1 MB, free: 10.01 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1804/0.1804, allocations: 44.83 MB / 392 MB, free: 9.285 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002516/0.0002517, allocations: 11.98 kB / 464.7 MB, free: 49.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08509/0.08536, allocations: 62.95 MB / 0.5153 GB, free: 2.746 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.002324/0.08774, allocations: 2.063 MB / 0.5173 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1666/0.2544, allocations: 0.9679 MB / 0.5183 GB, free: 9.805 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.2545, allocations: 6.094 kB / 0.5183 GB, free: 9.805 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002742/0.2548, allocations: 88.58 kB / 0.5184 GB, free: 9.801 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.255, allocations: 80.83 kB / 0.5185 GB, free: 9.801 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006935/0.2557, allocations: 394.4 kB / 0.5188 GB, free: 9.766 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.2559, allocations: 207.2 kB / 0.519 GB, free: 9.711 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007035/0.2567, allocations: 478.3 kB / 0.5195 GB, free: 9.578 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.2568, allocations: 81.14 kB / 0.5196 GB, free: 9.562 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.2569, allocations: 102.4 kB / 0.5197 GB, free: 9.539 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.432e-05/0.257, allocations: 11.12 kB / 0.5197 GB, free: 9.539 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002454/0.2572, allocations: 131.8 kB / 0.5198 GB, free: 9.531 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.456e-05/0.2572, allocations: 34.66 kB / 0.5198 GB, free: 9.523 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.572e-05/0.2573, allocations: 68.64 kB / 0.5199 GB, free: 9.48 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.2576, allocations: 301.9 kB / 0.5202 GB, free: 9.453 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2576, allocations: 0 / 0.5202 GB, free: 9.453 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2576, allocations: 1.031 kB / 0.5202 GB, free: 9.453 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.2576, allocations: 0 / 0.5202 GB, free: 9.453 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009946/0.2586, allocations: 0.5964 MB / 0.5208 GB, free: 9.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.868e-05/0.2587, allocations: 13.28 kB / 0.5208 GB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002814/0.259, allocations: 45.97 kB / 0.5208 GB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.948e-05/0.2591, allocations: 187.5 kB / 0.521 GB, free: 8.797 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.2591, allocations: 20.06 kB / 0.521 GB, free: 8.797 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.2591, allocations: 23.22 kB / 0.521 GB, free: 8.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005123/0.2596, allocations: 303.5 kB / 0.5213 GB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.2597, allocations: 0.8125 kB / 0.5213 GB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.2597, allocations: 9.5 kB / 0.5213 GB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.2597, allocations: 5.656 kB / 0.5213 GB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005296/0.2602, allocations: 250.5 kB / 0.5216 GB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.2614, allocations: 1.019 MB / 0.5226 GB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004483/0.2619, allocations: 387.1 kB / 0.5229 GB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.2622, allocations: 138.9 kB / 0.5231 GB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.2623, allocations: 171.2 kB / 0.5232 GB, free: 7.758 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.367e-05/0.2624, allocations: 36.06 kB / 0.5233 GB, free: 7.719 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.352e-06/0.2624, allocations: 0.5469 kB / 0.5233 GB, free: 7.719 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.001086/0.2635, allocations: 0.533 MB / 0.5238 GB, free: 7.438 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.877e-05/0.2635, allocations: 80.11 kB / 0.5239 GB, free: 7.344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.616e-05/0.2636, allocations: 135.6 kB / 0.524 GB, free: 7.234 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.2636, allocations: 29.7 kB / 0.524 GB, free: 7.199 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.519e-05/0.2636, allocations: 143 kB / 0.5242 GB, free: 7.074 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.701e-05/0.2637, allocations: 75.38 kB / 0.5242 GB, free: 7.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-06/0.2637, allocations: 4 kB / 0.5242 GB, free: 7.012 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.792e-05/0.2637, allocations: 321.5 kB / 0.5246 GB, free: 6.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.264, allocations: 80 kB / 0.5246 GB, free: 6.676 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.2642, allocations: 137.7 kB / 0.5248 GB, free: 6.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.2644, allocations: 93.3 kB / 0.5248 GB, free: 6.559 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2644, allocations: 0 / 0.5248 GB, free: 6.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005659/0.265, allocations: 306.1 kB / 0.5251 GB, free: 6.422 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.265, allocations: 6.938 kB / 0.5251 GB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.265, allocations: 1.375 kB / 0.5251 GB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000168/0.2652, allocations: 47.64 kB / 0.5252 GB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.2654, allocations: 53.02 kB / 0.5252 GB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001117/0.2665, allocations: 2.633 MB / 0.5278 GB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.2667, allocations: 32.17 kB / 0.5278 GB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.2667, allocations: 6.75 kB / 0.5279 GB, free: 3.707 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.208e-05/0.2668, allocations: 153.4 kB / 0.528 GB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.916e-05/0.2668, allocations: 19.34 kB / 0.528 GB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005931/0.2674, allocations: 283.7 kB / 0.5283 GB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2674, allocations: 2.125 kB / 0.5283 GB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2675, allocations: 5.156 kB / 0.5283 GB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.2675, allocations: 2.219 kB / 0.5283 GB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009376/0.2684, allocations: 0.6652 MB / 0.5289 GB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2684, allocations: 1.125 kB / 0.5289 GB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.2686, allocations: 45.41 kB / 0.529 GB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001074/0.2687, allocations: 45.97 kB / 0.529 GB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.2687, allocations: 6.688 kB / 0.529 GB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.2698, allocations: 2.648 MB / 0.5316 GB, free: 240 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2698, allocations: 1.062 kB / 0.5316 GB, free: 240 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008212/0.2706, allocations: 0.5483 MB / 0.5322 GB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.416e-05/0.2707, allocations: 90.75 kB / 0.5323 GB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.2707, allocations: 6.672 kB / 0.5323 GB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.2709, allocations: 21.66 kB / 0.5323 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.174e-05/0.271, allocations: 16.72 kB / 0.5323 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.271, allocations: 8.75 kB / 0.5323 GB, free: 15.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.564e-05/0.271, allocations: 114 kB / 0.5324 GB, free: 15.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.603e-06/0.2711, allocations: 0 / 0.5324 GB, free: 15.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003809/0.2714, allocations: 77.72 kB / 0.5325 GB, free: 15.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_p.reference.gamma) * 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 (15): * Single equations (assignments): 13 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001736/0.2716, allocations: 129.6 kB / 0.5326 GB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006826/0.2723, allocations: 429.8 kB / 0.533 GB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.2723, allocations: 0 / 0.533 GB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.2727, allocations: 349.9 kB / 0.5334 GB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.273, allocations: 17.48 kB / 0.5334 GB, free: 14.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007697/0.2738, allocations: 0.5849 MB / 0.5339 GB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.2741, allocations: 0.7368 MB / 0.5347 GB, free: 13.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.4e-05/0.2742, allocations: 19.75 kB / 0.5347 GB, free: 13.86 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2742, allocations: 0 / 0.5347 GB, free: 13.86 MB / 362.7 MB Notification: Performance of Templates: time 0.005773/0.2799, allocations: 4.273 MB / 0.5389 GB, free: 13.44 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches