Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001554/0.001554, allocations: 119.5 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001618, allocations: 210.8 kB / 19.41 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.401/1.401, allocations: 227.7 MB / 247.9 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 59.89 kB / 359.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2386, allocations: 50.54 MB / 410.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004224/0.2428, allocations: 2.854 MB / 413.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.2443, allocations: 0.7906 MB / 413.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.2444, allocations: 4 kB / 413.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.2446, allocations: 67.42 kB / 413.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002698/0.2449, allocations: 107.1 kB / 414 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.2452, allocations: 115.7 kB / 414.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004771/0.2457, allocations: 398.5 kB / 414.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.2459, allocations: 94.92 kB / 414.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002825/0.2461, allocations: 163.4 kB / 414.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.2464, allocations: 175.2 kB / 414.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.955e-05/0.2464, allocations: 32 kB / 415 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.443e-05/0.2465, allocations: 36 kB / 415 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-05/0.2465, allocations: 83.62 kB / 415.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.2467, allocations: 175.1 kB / 415.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004625/0.2472, allocations: 406.1 kB / 415.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2472, allocations: 0 / 415.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2472, allocations: 7.938 kB / 415.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.2472, allocations: 0 / 415.7 MB, free: 11.97 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001228/0.2484, allocations: 0.6544 MB / 416.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.2484, allocations: 12.03 kB / 416.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.099e-05/0.2485, allocations: 40.7 kB / 416.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.2489, allocations: 287.5 kB / 416.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.249, allocations: 25.03 kB / 416.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.249, allocations: 28.38 kB / 416.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007749/0.2498, allocations: 294.3 kB / 417 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.2498, allocations: 0 / 417 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/0.2498, allocations: 12 kB / 417 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.2498, allocations: 15.94 kB / 417 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006463/0.2505, allocations: 254.5 kB / 417.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.2523, allocations: 1.112 MB / 418.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003965/0.2527, allocations: 156.8 kB / 418.5 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.2529, allocations: 64.73 kB / 418.6 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.253, allocations: 4 kB / 418.6 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.253, allocations: 38.56 kB / 418.6 MB, free: 8.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.512e-06/0.253, allocations: 0 / 418.6 MB, free: 8.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002144/0.2551, allocations: 0.5887 MB / 419.2 MB, free: 8.191 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.2552, allocations: 63.39 kB / 419.3 MB, free: 8.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.2555, allocations: 286.9 kB / 419.6 MB, free: 7.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.2555, allocations: 29.7 kB / 419.6 MB, free: 7.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.2557, allocations: 236.1 kB / 419.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.286e-05/0.2558, allocations: 71.34 kB / 419.9 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.2559, allocations: 65.69 kB / 420 MB, free: 7.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.256, allocations: 342.8 kB / 420.3 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.2563, allocations: 91.94 kB / 420.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003828/0.2567, allocations: 203.9 kB / 420.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006514/0.2574, allocations: 305.1 kB / 420.9 MB, free: 6.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2574, allocations: 4 kB / 420.9 MB, free: 6.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009055/0.2583, allocations: 393 kB / 421.3 MB, free: 6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.2583, allocations: 8 kB / 421.3 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.2583, allocations: 4 kB / 421.3 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002557/0.2586, allocations: 66.06 kB / 421.4 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/0.2589, allocations: 75.89 kB / 421.4 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/0.2613, allocations: 2.837 MB / 424.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002879/0.2616, allocations: 19.98 kB / 424.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.56e-05/0.2616, allocations: 16 kB / 424.3 MB, free: 2.691 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001763/0.2618, allocations: 161.6 kB / 424.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.021e-05/0.2618, allocations: 27.81 kB / 424.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.351e-05/0.2619, allocations: 34.2 kB / 424.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2619, allocations: 4 kB / 424.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2619, allocations: 0 / 424.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.2619, allocations: 3.984 kB / 424.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003968/0.2623, allocations: 341.4 kB / 424.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2623, allocations: 4 kB / 424.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002172/0.2625, allocations: 39.97 kB / 424.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001829/0.2627, allocations: 53.67 kB / 425 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.2627, allocations: 4 kB / 425 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002218/0.2649, allocations: 2.834 MB / 427.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2649, allocations: 4.125 kB / 427.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007656/0.2657, allocations: 380 kB / 428.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.128e-05/0.2658, allocations: 100.8 kB / 428.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.111e-05/0.2658, allocations: 12.19 kB / 428.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.266, allocations: 19.97 kB / 428.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.334e-05/0.2661, allocations: 19.97 kB / 428.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.2661, allocations: 7.984 kB / 428.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000223/0.2663, allocations: 201.9 kB / 428.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2663, allocations: 0 / 428.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004451/0.2668, allocations: 72 kB / 428.6 MB, free: 14.01 MB / 350.1 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 (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001331/0.2669, allocations: 107.2 kB / 428.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009774/0.2679, allocations: 473 kB / 429.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2679, allocations: 0 / 429.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005355/0.2684, allocations: 345.3 kB / 429.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.2688, allocations: 33.62 kB / 429.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.2698, allocations: 0.5565 MB / 430.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.2703, allocations: 0.7753 MB / 430.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.2704, allocations: 22.28 kB / 430.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.776e-05/0.2705, allocations: 27.44 kB / 430.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2705, allocations: 0 / 430.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Templates: time 0.007306/0.2778, allocations: 2.867 MB / 433.8 MB, free: 8.75 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches