Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 109.1 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 47.91 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2478, allocations: 49.44 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004393/0.2522, allocations: 2.793 MB / 403.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.2534, allocations: 0.7439 MB / 404.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.2536, allocations: 7.938 kB / 404.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000232/0.2538, allocations: 71.36 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.2541, allocations: 95.25 kB / 404.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.2544, allocations: 111.7 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.2548, allocations: 378.6 kB / 404.9 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.2551, allocations: 130.9 kB / 405 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.2553, allocations: 159.4 kB / 405.2 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.2555, allocations: 167.2 kB / 405.4 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.779e-05/0.2555, allocations: 32 kB / 405.4 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.751e-05/0.2556, allocations: 36 kB / 405.4 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.044e-05/0.2557, allocations: 79.69 kB / 405.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.2558, allocations: 175.1 kB / 405.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00035/0.2562, allocations: 387.7 kB / 406.1 MB, free: 3.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.2562, allocations: 4 kB / 406.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2562, allocations: 0 / 406.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2562, allocations: 0 / 406.1 MB, free: 3.531 MB / 318.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.001069/0.2573, allocations: 0.6393 MB / 406.7 MB, free: 2.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2573, allocations: 11.89 kB / 406.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.586e-05/0.2574, allocations: 40.47 kB / 406.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.2577, allocations: 268.9 kB / 407 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.2578, allocations: 21.03 kB / 407 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-05/0.2578, allocations: 40.31 kB / 407.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005537/0.2584, allocations: 290.4 kB / 407.4 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.2584, allocations: 0 / 407.4 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.724e-05/0.2585, allocations: 12 kB / 407.4 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.2585, allocations: 11.98 kB / 407.4 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005552/0.259, allocations: 250.5 kB / 407.6 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001578/0.2606, allocations: 1.108 MB / 408.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003568/0.261, allocations: 158.5 kB / 408.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.2612, allocations: 64.81 kB / 408.9 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.2612, allocations: 7.984 kB / 409 MB, free: 436 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.2613, allocations: 34.56 kB / 409 MB, free: 392 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.462e-06/0.2613, allocations: 0 / 409 MB, free: 392 kB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001896/0.2632, allocations: 0.5987 MB / 409.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.2632, allocations: 51.41 kB / 409.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.2634, allocations: 262.5 kB / 409.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.2635, allocations: 37.7 kB / 409.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.2636, allocations: 227.4 kB / 410.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.2637, allocations: 71 kB / 410.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.282e-05/0.2638, allocations: 65.59 kB / 410.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.2639, allocations: 334.8 kB / 410.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002716/0.2642, allocations: 91.94 kB / 410.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.2645, allocations: 203.8 kB / 410.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005607/0.2651, allocations: 305.8 kB / 411.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2651, allocations: 4 kB / 411.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007724/0.2659, allocations: 385.3 kB / 411.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.2659, allocations: 8 kB / 411.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2659, allocations: 4 kB / 411.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000236/0.2661, allocations: 53.67 kB / 411.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003117/0.2665, allocations: 79.89 kB / 411.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.2683, allocations: 2.833 MB / 414.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.2686, allocations: 23.97 kB / 414.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.2686, allocations: 16 kB / 414.6 MB, free: 10.34 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.000142/0.2688, allocations: 153.7 kB / 414.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.658e-05/0.2688, allocations: 23.72 kB / 414.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.204e-05/0.2689, allocations: 30.17 kB / 414.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.2689, allocations: 12 kB / 414.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2689, allocations: 4 kB / 414.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2689, allocations: 0 / 414.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003333/0.2693, allocations: 333.4 kB / 415.1 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2693, allocations: 4.141 kB / 415.1 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.2695, allocations: 35.97 kB / 415.2 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001415/0.2696, allocations: 61.59 kB / 415.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.2697, allocations: 8 kB / 415.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001741/0.2714, allocations: 2.829 MB / 418.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2714, allocations: 0 / 418.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006893/0.2721, allocations: 375.2 kB / 418.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.206e-05/0.2722, allocations: 104.7 kB / 418.5 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.2722, allocations: 4 kB / 418.5 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.2724, allocations: 19.97 kB / 418.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.843e-05/0.2725, allocations: 15.92 kB / 418.6 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.2725, allocations: 8 kB / 418.6 MB, free: 5.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001553/0.2727, allocations: 186 kB / 418.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2727, allocations: 0 / 418.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003788/0.2731, allocations: 76 kB / 418.8 MB, free: 5.703 MB / 334.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.0001056/0.2732, allocations: 115.1 kB / 419 MB, free: 5.582 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000847/0.274, allocations: 489.1 kB / 419.4 MB, free: 5.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.274, allocations: 0 / 419.4 MB, free: 5.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004563/0.2745, allocations: 346.1 kB / 419.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.2748, allocations: 20.56 kB / 419.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009477/0.2758, allocations: 0.5483 MB / 420.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.2761, allocations: 0.7713 MB / 421.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.2762, allocations: 30.31 kB / 421.1 MB, free: 3.289 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.793e-05/0.2763, allocations: 19.44 kB / 421.2 MB, free: 3.27 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2763, allocations: 4 kB / 421.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of Templates: time 0.00605/0.2824, allocations: 2.74 MB / 423.9 MB, free: 0.5391 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches