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.001294/0.001294, allocations: 109.8 kB / 16.62 MB, free: 6.961 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.001452/0.001452, allocations: 189.8 kB / 17.55 MB, free: 6.066 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.302/1.302, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000928/0.000928, allocations: 49.12 kB / 300.1 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.08512, allocations: 49.44 MB / 349.6 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006049/0.09121, allocations: 5.016 MB / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003298/0.09454, allocations: 2.059 MB / 356.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005278/0.09509, allocations: 16 kB / 356.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003028/0.09816, allocations: 1.328 MB / 358 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001301/0.09947, allocations: 0.5093 MB / 358.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001869/0.1013, allocations: 0.9905 MB / 359.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009627/0.1023, allocations: 0.7355 MB / 360.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.1034, allocations: 0.7391 MB / 361 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004128/0.1038, allocations: 334.8 kB / 361.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000398/0.1042, allocations: 434.3 kB / 361.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.742e-05/0.1043, allocations: 64 kB / 361.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000621/0.1049, allocations: 395.6 kB / 362.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.105, allocations: 159.5 kB / 362.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002817/0.1053, allocations: 382.1 kB / 362.7 MB, free: 7.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.1064, allocations: 1.176 MB / 363.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1064, allocations: 4 kB / 363.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1064, allocations: 0 / 363.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.1064, allocations: 0 / 363.9 MB, free: 6.168 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003969/0.1104, allocations: 1.451 MB / 365.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.1105, allocations: 8.031 kB / 365.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002562/0.113, allocations: 387.6 kB / 365.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.1132, allocations: 252 kB / 366 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.193e-05/0.1133, allocations: 62.38 kB / 366 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.1134, allocations: 84.38 kB / 366.1 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.115, allocations: 0.8722 MB / 367 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/0.115, allocations: 11.89 kB / 367 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.134e-05/0.1151, allocations: 32 kB / 367 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.1151, allocations: 20 kB / 367.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001771/0.1169, allocations: 0.8042 MB / 367.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1457/0.2626, allocations: 2.955 MB / 370.8 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.2639, allocations: 0.9988 MB / 371.8 MB, free: 22.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005561/0.2644, allocations: 241.4 kB / 372.1 MB, free: 22.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.414e-05/0.2645, allocations: 98.69 kB / 372.1 MB, free: 22.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.2646, allocations: 37.5 kB / 372.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.575e-06/0.2646, allocations: 0 / 372.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008217/0.2728, allocations: 2.418 MB / 374.6 MB, free: 22.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.2728, allocations: 89.11 kB / 374.7 MB, free: 22.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.2731, allocations: 296.5 kB / 375 MB, free: 21.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.2732, allocations: 40.89 kB / 375 MB, free: 21.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.2733, allocations: 361.2 kB / 375.4 MB, free: 21.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.2734, allocations: 210.1 kB / 375.6 MB, free: 21.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002134/0.2737, allocations: 151.4 kB / 375.7 MB, free: 21.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.432e-05/0.2737, allocations: 353 kB / 376.1 MB, free: 20.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008004/0.2745, allocations: 272.4 kB / 376.3 MB, free: 20.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008766/0.2754, allocations: 0.511 MB / 376.8 MB, free: 20.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.2771, allocations: 0.8066 MB / 377.7 MB, free: 20 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.2771, allocations: 3.031 kB / 377.7 MB, free: 20 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002094/0.2792, allocations: 0.9014 MB / 378.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.2792, allocations: 7.562 kB / 378.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.2792, allocations: 10.47 kB / 378.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002279/0.2795, allocations: 72.23 kB / 378.6 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009136/0.2804, allocations: 203.2 kB / 378.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.2818, allocations: 2.873 MB / 381.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006674/0.2825, allocations: 65.58 kB / 381.8 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.047e-05/0.2826, allocations: 38.66 kB / 381.8 MB, free: 16.69 MB / 302.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.0002328/0.2828, allocations: 218.7 kB / 382 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.475e-05/0.2829, allocations: 43.31 kB / 382.1 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.2849, allocations: 0.7429 MB / 382.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.2849, allocations: 11.81 kB / 382.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2849, allocations: 3.828 kB / 382.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.2849, allocations: 3.234 kB / 382.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/0.2875, allocations: 1.426 MB / 384.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2875, allocations: 0 / 384.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007318/0.2883, allocations: 136.2 kB / 384.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001625/0.2884, allocations: 62.47 kB / 384.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.495e-05/0.2885, allocations: 16.84 kB / 384.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.2898, allocations: 2.85 MB / 387.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.2898, allocations: 0.5156 kB / 387.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002578/0.2924, allocations: 1.088 MB / 388.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.2926, allocations: 158.7 kB / 388.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.109e-05/0.2926, allocations: 10.5 kB / 388.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005611/0.2932, allocations: 52.61 kB / 388.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.2933, allocations: 53.84 kB / 388.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.221e-05/0.2934, allocations: 20.16 kB / 388.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001809/0.2936, allocations: 209.7 kB / 388.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2936, allocations: 0 / 388.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006435/0.2942, allocations: 172.8 kB / 389.1 MB, free: 11.73 MB / 302.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.0002118/0.2945, allocations: 153.3 kB / 389.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002203/0.2967, allocations: 0.9577 MB / 390.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2967, allocations: 0.9688 kB / 390.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009531/0.2976, allocations: 0.5489 MB / 390.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.298, allocations: 40.33 kB / 390.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002439/0.3005, allocations: 1.563 MB / 392.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.3008, allocations: 0.8828 MB / 393.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004891/0.3013, allocations: 91.16 kB / 393.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.3014, allocations: 55.05 kB / 393.4 MB, free: 9.094 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3015, allocations: 1.219 kB / 393.4 MB, free: 9.094 MB / 302.1 MB Notification: Performance of Templates: time 0.009439/0.3109, allocations: 6.291 MB / 399.7 MB, free: 6.516 MB / 302.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