Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) 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) 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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001105/0.001105, allocations: 100.2 kB / 17 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001578/0.001578, allocations: 192.1 kB / 17.9 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.7 MB / 246.4 MB, free: 9.789 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002156/0.0002156, allocations: 4 kB / 307.1 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/0.09041, allocations: 51.52 MB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.002753/0.09321, allocations: 2.408 MB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.09436, allocations: 0.752 MB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.0945, allocations: 4 kB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.09468, allocations: 47.62 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.09494, allocations: 83.42 kB / 361.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.09517, allocations: 83.84 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000346/0.09552, allocations: 358.5 kB / 362.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.09572, allocations: 106.1 kB / 362.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002455/0.09598, allocations: 139.5 kB / 362.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.09616, allocations: 151.2 kB / 362.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.09621, allocations: 16 kB / 362.8 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.672e-05/0.09626, allocations: 20 kB / 362.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.39e-05/0.09632, allocations: 59.75 kB / 362.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.424e-05/0.09639, allocations: 85.52 kB / 362.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002641/0.09666, allocations: 295.4 kB / 363.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.926e-06/0.09668, allocations: 0 / 363.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.09669, allocations: 7.938 kB / 363.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.09669, allocations: 0 / 363.2 MB, free: 8.797 MB / 302.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.001005/0.0977, allocations: 0.6041 MB / 363.8 MB, free: 8.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.09775, allocations: 8.031 kB / 363.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.944e-05/0.09782, allocations: 43.53 kB / 363.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.09811, allocations: 262.3 kB / 364.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.09815, allocations: 28.66 kB / 364.2 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/0.0982, allocations: 32 kB / 364.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.09877, allocations: 294 kB / 364.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.09879, allocations: 0 / 364.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.09883, allocations: 16 kB / 364.5 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.09885, allocations: 11.98 kB / 364.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000607/0.09946, allocations: 274.4 kB / 364.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.1011, allocations: 1.131 MB / 365.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003575/0.1015, allocations: 158.6 kB / 366.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.1017, allocations: 64.83 kB / 366.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.1017, allocations: 4 kB / 366.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.1017, allocations: 38.55 kB / 366.2 MB, free: 5.637 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.535e-06/0.1018, allocations: 4 kB / 366.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001914/0.1037, allocations: 0.6754 MB / 366.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.404e-05/0.1037, allocations: 55.59 kB / 366.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.104, allocations: 274.9 kB / 367.2 MB, free: 4.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.104, allocations: 29.7 kB / 367.2 MB, free: 4.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.1042, allocations: 239.5 kB / 367.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.442e-05/0.1042, allocations: 74.84 kB / 367.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.1042, allocations: 11.94 kB / 367.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1044, allocations: 346.8 kB / 367.9 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.1046, allocations: 99.94 kB / 368 MB, free: 3.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.105, allocations: 204 kB / 368.1 MB, free: 3.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/0.1053, allocations: 141 kB / 368.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1053, allocations: 0 / 368.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007907/0.1061, allocations: 415.5 kB / 368.7 MB, free: 3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1061, allocations: 8 kB / 368.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1061, allocations: 0 / 368.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002189/0.1064, allocations: 65.67 kB / 368.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003192/0.1067, allocations: 79.83 kB / 368.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1641/0.2708, allocations: 2.623 MB / 371.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.2712, allocations: 27.48 kB / 371.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.891e-05/0.2712, allocations: 17.52 kB / 371.5 MB, free: 18.07 MB / 302.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 (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 0.0001702/0.2714, allocations: 148.7 kB / 371.7 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.359e-05/0.2715, allocations: 32.89 kB / 371.7 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.693e-05/0.2716, allocations: 32.09 kB / 371.7 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2716, allocations: 5.453 kB / 371.7 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.2716, allocations: 1.25 kB / 371.7 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2716, allocations: 1.922 kB / 371.7 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.272, allocations: 335.4 kB / 372.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.272, allocations: 1.734 kB / 372.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002218/0.2722, allocations: 46.86 kB / 372.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001638/0.2724, allocations: 60.95 kB / 372.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.2724, allocations: 5.125 kB / 372.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.2737, allocations: 2.632 MB / 374.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.2737, allocations: 3.953 kB / 374.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006765/0.2744, allocations: 399.5 kB / 375.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.2744, allocations: 99.56 kB / 375.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.2745, allocations: 8.438 kB / 375.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.2747, allocations: 22.97 kB / 375.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.701e-05/0.2748, allocations: 19.06 kB / 375.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.2748, allocations: 7.078 kB / 375.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001861/0.275, allocations: 195.7 kB / 375.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.275, allocations: 4.844 kB / 375.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004138/0.2754, allocations: 74.12 kB / 375.6 MB, free: 14.95 MB / 302.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 (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.0001082/0.2755, allocations: 103.4 kB / 375.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008771/0.2764, allocations: 0.4948 MB / 376.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2764, allocations: 0 / 376.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004743/0.2769, allocations: 355.9 kB / 376.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003715/0.2773, allocations: 29.27 kB / 376.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.2783, allocations: 0.6965 MB / 377.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.2785, allocations: 0.7765 MB / 378.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001521/0.2787, allocations: 32.8 kB / 378.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.866e-05/0.2788, allocations: 22.27 kB / 378.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2788, allocations: 0 / 378.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of Templates: time 0.006938/0.2857, allocations: 2.5 MB / 380.6 MB, free: 13.17 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches