Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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) 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(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_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001544/0.001544, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 226.6 MB / 244.3 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000822/0.0008222, allocations: 100.1 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002281/0.0002281, allocations: 7.938 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2214, allocations: 51.3 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003383/0.2248, allocations: 4.295 MB / 411.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.2272, allocations: 1.943 MB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002038/0.2274, allocations: 16.94 kB / 413.8 MB, free: 21.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004186/0.2278, allocations: 222.9 kB / 414 MB, free: 21.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006604/0.2285, allocations: 342.2 kB / 414.3 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.2299, allocations: 0.9827 MB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004911/0.2304, allocations: 0.6769 MB / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.2319, allocations: 1.129 MB / 417.1 MB, free: 18.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002966/0.2322, allocations: 274.9 kB / 417.4 MB, free: 17.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002657/0.2325, allocations: 362.6 kB / 417.7 MB, free: 17.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.258e-05/0.2326, allocations: 36 kB / 417.8 MB, free: 17.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005988/0.2332, allocations: 363.6 kB / 418.1 MB, free: 17.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.186e-05/0.2332, allocations: 123.5 kB / 418.2 MB, free: 17.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.303e-05/0.2333, allocations: 153.3 kB / 418.4 MB, free: 16.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006441/0.234, allocations: 0.893 MB / 419.3 MB, free: 16.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.234, allocations: 0 / 419.3 MB, free: 16.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.234, allocations: 0 / 419.3 MB, free: 16.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.234, allocations: 0 / 419.3 MB, free: 16.03 MB / 298.7 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.003343/0.2374, allocations: 1.354 MB / 420.6 MB, free: 14.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.2374, allocations: 8.031 kB / 420.6 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002299/0.2397, allocations: 390.7 kB / 421 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.2399, allocations: 258.7 kB / 421.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.24, allocations: 62 kB / 421.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.2401, allocations: 84 kB / 421.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.2415, allocations: 0.8797 MB / 422.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.2415, allocations: 0 / 422.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.859e-05/0.2416, allocations: 36 kB / 422.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.2416, allocations: 20 kB / 422.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/0.2431, allocations: 0.8238 MB / 423.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003353/0.2465, allocations: 3.044 MB / 426.2 MB, free: 8.762 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000962/0.2474, allocations: 1.013 MB / 427.2 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004556/0.2479, allocations: 254.4 kB / 427.5 MB, free: 7.383 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.907e-05/0.248, allocations: 178.7 kB / 427.7 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.2481, allocations: 47.06 kB / 427.7 MB, free: 7.117 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 2.204e-06/0.2481, allocations: 0 / 427.7 MB, free: 7.117 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.007192/0.2553, allocations: 2.681 MB / 430.4 MB, free: 4.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.2553, allocations: 93.61 kB / 430.5 MB, free: 4.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.2556, allocations: 299.1 kB / 430.8 MB, free: 3.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.2556, allocations: 41.7 kB / 430.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.2557, allocations: 362.6 kB / 431.2 MB, free: 3.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.74e-05/0.2558, allocations: 205 kB / 431.4 MB, free: 3.316 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.2559, allocations: 16 kB / 431.4 MB, free: 3.301 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.429e-05/0.2559, allocations: 354.7 kB / 431.7 MB, free: 2.945 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006954/0.2566, allocations: 293.8 kB / 432 MB, free: 2.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007639/0.2574, allocations: 0.5277 MB / 432.5 MB, free: 2.027 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007763/0.2582, allocations: 354 kB / 432.9 MB, free: 1.684 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2582, allocations: 4 kB / 432.9 MB, free: 1.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001802/0.26, allocations: 0.9455 MB / 433.8 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.2601, allocations: 8 kB / 433.8 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.2601, allocations: 8 kB / 433.8 MB, free: 0.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002191/0.2603, allocations: 73.67 kB / 433.9 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007849/0.2611, allocations: 207.7 kB / 434.1 MB, free: 436 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001901/0.263, allocations: 2.663 MB / 436.8 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006625/0.2637, allocations: 79.91 kB / 436.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.124e-05/0.2638, allocations: 39.98 kB / 436.9 MB, free: 13.38 MB / 314.7 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 (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.0003098/0.2641, allocations: 213.6 kB / 437.1 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.668e-05/0.2642, allocations: 39.53 kB / 437.1 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002035/0.2662, allocations: 0.7937 MB / 437.9 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.2662, allocations: 8 kB / 437.9 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2662, allocations: 0 / 437.9 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.2662, allocations: 3.984 kB / 438 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00273/0.269, allocations: 1.461 MB / 439.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.269, allocations: 7.922 kB / 439.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006607/0.2697, allocations: 143.8 kB / 439.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001963/0.2699, allocations: 61.62 kB / 439.6 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.897e-05/0.2699, allocations: 27.91 kB / 439.6 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/0.2717, allocations: 2.647 MB / 442.3 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.2717, allocations: 8.156 kB / 442.3 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.2744, allocations: 1.152 MB / 443.5 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002035/0.2746, allocations: 160.6 kB / 443.6 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.762e-05/0.2746, allocations: 12 kB / 443.6 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005131/0.2752, allocations: 60.02 kB / 443.7 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.2753, allocations: 44.48 kB / 443.7 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.583e-05/0.2753, allocations: 23.94 kB / 443.8 MB, free: 6.125 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002061/0.2755, allocations: 203.1 kB / 443.9 MB, free: 5.926 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2756, allocations: 0 / 443.9 MB, free: 5.926 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007026/0.2763, allocations: 180 kB / 444.1 MB, free: 5.75 MB / 314.7 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 (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.0002813/0.2765, allocations: 159.1 kB / 444.3 MB, free: 5.582 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00213/0.2787, allocations: 0.959 MB / 445.2 MB, free: 4.594 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2787, allocations: 0 / 445.2 MB, free: 4.594 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.2797, allocations: 0.5749 MB / 445.8 MB, free: 3.996 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000402/0.2802, allocations: 48.58 kB / 445.9 MB, free: 3.949 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.2829, allocations: 1.581 MB / 447.4 MB, free: 2.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004652/0.2834, allocations: 0.881 MB / 448.3 MB, free: 1.434 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.2836, allocations: 63.39 kB / 448.4 MB, free: 1.375 MB / 314.7 MB Notification: Performance of SimCode: time 7.82e-07/0.2836, allocations: 0 / 448.4 MB, free: 1.375 MB / 314.7 MB Notification: Performance of Templates: time 0.01482/0.2985, allocations: 13.08 MB / 461.5 MB, free: 4.312 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches