Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.Shapes.FixedShape,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|signalSource.V_m|signalSource.Phi|cuboid.G_m|cuboid.A|hollowCylinderAxialFlux.G_m|hollowCylinderAxialFlux.A|hollowCylinderRadialFlux.G_m|hollowCylinderRadialFlux.A|genericFluxTube.G_m|genericFluxTube.A",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|signalSource.V_m|signalSource.Phi|cuboid.G_m|cuboid.A|hollowCylinderAxialFlux.G_m|hollowCylinderAxialFlux.A|hollowCylinderRadialFlux.G_m|hollowCylinderRadialFlux.A|genericFluxTube.G_m|genericFluxTube.A",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001533/0.001533, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.6 MB / 243.1 MB, free: 14.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007116/0.0007116, allocations: 100.1 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.1711/0.1711, allocations: 44.83 MB / 392 MB, free: 9.309 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002306/0.0002306, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/0.09306, allocations: 62.96 MB / 0.5153 GB, free: 2.75 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.002335/0.09544, allocations: 2.048 MB / 0.5173 GB, free: 0.6836 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1662/0.2617, allocations: 0.7506 MB / 0.5181 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002387/0.2619, allocations: 3.875 kB / 0.5181 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.2621, allocations: 41.27 kB / 0.5181 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002446/0.2624, allocations: 85.53 kB / 0.5182 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003015/0.2627, allocations: 75.33 kB / 0.5183 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003448/0.263, allocations: 305.3 kB / 0.5186 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.2632, allocations: 77.88 kB / 0.5186 GB, free: 9.797 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002266/0.2635, allocations: 113.5 kB / 0.5187 GB, free: 9.777 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.2637, allocations: 134 kB / 0.5189 GB, free: 9.746 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.936e-05/0.2637, allocations: 15.75 kB / 0.5189 GB, free: 9.746 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.883e-05/0.2638, allocations: 20.66 kB / 0.5189 GB, free: 9.746 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.918e-05/0.2638, allocations: 52.84 kB / 0.519 GB, free: 9.734 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.179e-05/0.2639, allocations: 76.14 kB / 0.519 GB, free: 9.691 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.2642, allocations: 268.8 kB / 0.5193 GB, free: 9.668 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2642, allocations: 5.859 kB / 0.5193 GB, free: 9.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2642, allocations: 0 / 0.5193 GB, free: 9.664 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2642, allocations: 1.031 kB / 0.5193 GB, free: 9.664 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.000853/0.2651, allocations: 0.5688 MB / 0.5198 GB, free: 9.219 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.2651, allocations: 9.891 kB / 0.5199 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.2653, allocations: 35.12 kB / 0.5199 GB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/0.2655, allocations: 264.1 kB / 0.5201 GB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.2655, allocations: 19.53 kB / 0.5202 GB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.622e-05/0.2655, allocations: 25.98 kB / 0.5202 GB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004737/0.266, allocations: 247.6 kB / 0.5204 GB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.639e-06/0.266, allocations: 0 / 0.5204 GB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.2661, allocations: 11.81 kB / 0.5204 GB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2661, allocations: 6.094 kB / 0.5204 GB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005252/0.2666, allocations: 240.2 kB / 0.5207 GB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.2678, allocations: 0.8745 MB / 0.5215 GB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005176/0.2684, allocations: 311.7 kB / 0.5218 GB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.2686, allocations: 148.9 kB / 0.522 GB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.471e-05/0.2687, allocations: 5.047 kB / 0.522 GB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.672e-05/0.2687, allocations: 40.56 kB / 0.522 GB, free: 8.465 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.242e-06/0.2687, allocations: 1.344 kB / 0.522 GB, free: 8.465 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.004256/0.273, allocations: 1.271 MB / 0.5232 GB, free: 7.957 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.149e-05/0.273, allocations: 56.64 kB / 0.5233 GB, free: 7.895 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001911/0.2732, allocations: 213.7 kB / 0.5235 GB, free: 7.789 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.2732, allocations: 30.95 kB / 0.5235 GB, free: 7.758 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.202e-05/0.2733, allocations: 164.1 kB / 0.5237 GB, free: 7.645 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.2734, allocations: 101.6 kB / 0.5238 GB, free: 7.578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.717e-05/0.2734, allocations: 10.84 kB / 0.5238 GB, free: 7.574 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.404e-05/0.2735, allocations: 334.5 kB / 0.5241 GB, free: 7.262 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.2737, allocations: 100.1 kB / 0.5242 GB, free: 7.258 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002441/0.274, allocations: 123.1 kB / 0.5243 GB, free: 7.238 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002507/0.2742, allocations: 118.9 kB / 0.5244 GB, free: 7.215 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2742, allocations: 0.875 kB / 0.5244 GB, free: 7.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001733/0.276, allocations: 0.547 MB / 0.525 GB, free: 6.996 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.276, allocations: 9.859 kB / 0.525 GB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.276, allocations: 0 / 0.525 GB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001618/0.2776, allocations: 312.9 kB / 0.5253 GB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.2778, allocations: 31.52 kB / 0.5253 GB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005322/0.2831, allocations: 6.319 MB / 0.5315 GB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.2834, allocations: 37.72 kB / 0.5315 GB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.2834, allocations: 10.47 kB / 0.5315 GB, free: 1.082 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (15): * Single equations (assignments): 11 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 5,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001292/0.2835, allocations: 143.4 kB / 0.5317 GB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.712e-05/0.2836, allocations: 23.89 kB / 0.5317 GB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.2853, allocations: 0.5562 MB / 0.5322 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.2853, allocations: 4.062 kB / 0.5322 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.2853, allocations: 5.312 kB / 0.5322 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2853, allocations: 1.828 kB / 0.5322 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003524/0.2856, allocations: 357.8 kB / 0.5326 GB, free: 436 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2857, allocations: 1.031 kB / 0.5326 GB, free: 436 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.2858, allocations: 22.8 kB / 0.5326 GB, free: 436 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001506/0.2873, allocations: 311.3 kB / 0.5329 GB, free: 356 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.2873, allocations: 4.969 kB / 0.5329 GB, free: 352 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006383/0.2937, allocations: 6.366 MB / 0.5391 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2937, allocations: 0 / 0.5391 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/0.2955, allocations: 0.6331 MB / 0.5397 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.476e-05/0.2956, allocations: 104.3 kB / 0.5398 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/0.2956, allocations: 6.125 kB / 0.5398 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.2958, allocations: 18.47 kB / 0.5399 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.747e-05/0.2959, allocations: 38.28 kB / 0.5399 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.2959, allocations: 9.906 kB / 0.5399 GB, free: 10.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001395/0.2961, allocations: 158.9 kB / 0.5401 GB, free: 9.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.2961, allocations: 4 kB / 0.5401 GB, free: 9.977 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004728/0.2966, allocations: 114.2 kB / 0.5402 GB, free: 9.961 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 (11): * Single equations (assignments): 7 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 4,2 4,2 4,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001081/0.2967, allocations: 97.75 kB / 0.5403 GB, free: 9.867 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009635/0.2977, allocations: 0.7523 MB / 0.541 GB, free: 9.297 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2977, allocations: 0 / 0.541 GB, free: 9.297 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.2988, allocations: 0.7303 MB / 0.5417 GB, free: 8.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.2992, allocations: 32.06 kB / 0.5417 GB, free: 8.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009532/0.3001, allocations: 0.6635 MB / 0.5424 GB, free: 8.293 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.3005, allocations: 0.7723 MB / 0.5432 GB, free: 7.594 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.987e-05/0.3005, allocations: 12.97 kB / 0.5432 GB, free: 7.586 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.3005, allocations: 4 kB / 0.5432 GB, free: 7.582 MB / 362.7 MB Notification: Performance of Templates: time 0.009512/0.31, allocations: 7.963 MB / 0.5509 GB, free: 4.289 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches