Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.001207/0.001207, allocations: 108.5 kB / 17.05 MB, free: 6.09 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.001185/0.001185, allocations: 192 kB / 17.99 MB, free: 5.184 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.293/1.293, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 55.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2656, allocations: 49.42 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006835/0.2725, allocations: 5.062 MB / 405.8 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003821/0.2763, allocations: 2.082 MB / 407.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003616/0.2767, allocations: 16 kB / 407.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003236/0.2799, allocations: 1.395 MB / 409.3 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001516/0.2815, allocations: 0.577 MB / 409.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00213/0.2836, allocations: 1.059 MB / 410.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009494/0.2846, allocations: 0.7394 MB / 411.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001079/0.2857, allocations: 0.665 MB / 412.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004708/0.2862, allocations: 322.8 kB / 412.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005068/0.2867, allocations: 430.3 kB / 413 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001199/0.2868, allocations: 71.94 kB / 413.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009247/0.2877, allocations: 383.7 kB / 413.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.2879, allocations: 163.4 kB / 413.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004042/0.2883, allocations: 378.1 kB / 414 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001521/0.2898, allocations: 1.202 MB / 415.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2899, allocations: 0 / 415.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2899, allocations: 4 kB / 415.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.2899, allocations: 0 / 415.2 MB, free: 10.31 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004273/0.2942, allocations: 1.465 MB / 416.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.2942, allocations: 12.03 kB / 416.7 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002567/0.2968, allocations: 380.1 kB / 417.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.2971, allocations: 260.8 kB / 417.3 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.555e-05/0.2972, allocations: 62.38 kB / 417.4 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.2973, allocations: 84.38 kB / 417.5 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.2991, allocations: 0.8838 MB / 418.4 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.1e-05/0.2991, allocations: 4 kB / 418.4 MB, free: 7.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.311e-05/0.2992, allocations: 32 kB / 418.4 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.2992, allocations: 23.98 kB / 418.4 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.3012, allocations: 0.7964 MB / 419.2 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004373/0.3056, allocations: 2.954 MB / 422.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.3069, allocations: 1.011 MB / 423.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005459/0.3075, allocations: 238.4 kB / 423.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.3076, allocations: 93.66 kB / 423.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.292e-05/0.3076, allocations: 35.12 kB / 423.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.245e-06/0.3076, allocations: 0 / 423.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.008122/0.3158, allocations: 2.436 MB / 426 MB, free: 15.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.3158, allocations: 85.67 kB / 426.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003242/0.3162, allocations: 303.2 kB / 426.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.3162, allocations: 33.7 kB / 426.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/0.3164, allocations: 371.9 kB / 426.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.3166, allocations: 226.1 kB / 427 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002156/0.3168, allocations: 146.5 kB / 427.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3169, allocations: 346.8 kB / 427.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007869/0.3177, allocations: 281.8 kB / 427.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009262/0.3187, allocations: 0.5004 MB / 428.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001749/0.3204, allocations: 0.8114 MB / 429 MB, free: 11.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.3205, allocations: 4 kB / 429 MB, free: 11.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00214/0.3226, allocations: 0.899 MB / 429.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3226, allocations: 12 kB / 430 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3227, allocations: 4 kB / 430 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002356/0.3229, allocations: 69.61 kB / 430 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008468/0.3238, allocations: 215.5 kB / 430.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.3257, allocations: 2.872 MB / 433.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006562/0.3264, allocations: 67.89 kB / 433.2 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.005e-05/0.3264, allocations: 39.98 kB / 433.2 MB, free: 7.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.0002893/0.3267, allocations: 213.7 kB / 433.4 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.056e-05/0.3268, allocations: 39.77 kB / 433.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/0.3289, allocations: 0.7468 MB / 434.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3289, allocations: 4 kB / 434.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3289, allocations: 4 kB / 434.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3289, allocations: 0 / 434.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002761/0.3317, allocations: 1.425 MB / 435.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3317, allocations: 3.938 kB / 435.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006547/0.3324, allocations: 135.8 kB / 435.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.3326, allocations: 61.67 kB / 435.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.046e-05/0.3326, allocations: 15.98 kB / 435.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/0.3344, allocations: 2.852 MB / 438.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3344, allocations: 0 / 438.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.337, allocations: 1.091 MB / 439.8 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002292/0.3373, allocations: 168.7 kB / 440 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.417e-05/0.3374, allocations: 12.19 kB / 440 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.3379, allocations: 47.94 kB / 440 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.338, allocations: 52.62 kB / 440.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.3381, allocations: 27.91 kB / 440.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002124/0.3383, allocations: 203.1 kB / 440.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3383, allocations: 0 / 440.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007023/0.339, allocations: 176 kB / 440.5 MB, free: 15.55 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_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 (58): * Single equations (assignments): 56 * 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.0002704/0.3393, allocations: 163 kB / 440.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002093/0.3414, allocations: 0.9124 MB / 441.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3414, allocations: 4 kB / 441.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.3424, allocations: 0.5511 MB / 442.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004546/0.3429, allocations: 44.59 kB / 442.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.3454, allocations: 1.249 MB / 443.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.3458, allocations: 0.8848 MB / 444.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003911/0.3462, allocations: 96.52 kB / 444.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.3464, allocations: 47.42 kB / 444.4 MB, free: 11.49 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3464, allocations: 3.938 kB / 444.4 MB, free: 11.49 MB / 366.1 MB Notification: Performance of Templates: time 0.01172/0.3581, allocations: 6.423 MB / 450.8 MB, free: 5.105 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches