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.0007396/0.0007397, allocations: 91.81 kB / 16.65 MB, free: 6.59 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.0007879/0.0007879, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.29/1.29, allocations: 223.3 MB / 241.6 MB, free: 100 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002995/0.0002996, allocations: 4 kB / 301.4 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09108/0.09139, allocations: 50.42 MB / 351.8 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00279/0.09423, allocations: 2.46 MB / 354.3 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009965/0.09524, allocations: 0.7439 MB / 355 MB, free: 460 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.09537, allocations: 4 kB / 355 MB, free: 456 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.09553, allocations: 43.69 kB / 355.1 MB, free: 412 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000212/0.09575, allocations: 79.44 kB / 355.2 MB, free: 332 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.09597, allocations: 95.84 kB / 355.3 MB, free: 236 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003134/0.09629, allocations: 368.2 kB / 355.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.09648, allocations: 103.6 kB / 355.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.09667, allocations: 139.4 kB / 355.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.09685, allocations: 147.2 kB / 356 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.93e-05/0.09689, allocations: 23.94 kB / 356 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.769e-05/0.09694, allocations: 16 kB / 356 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.537e-05/0.097, allocations: 67.69 kB / 356.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.09715, allocations: 180.8 kB / 356.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.09745, allocations: 366.7 kB / 356.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.09746, allocations: 0 / 356.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09747, allocations: 0 / 356.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.09748, allocations: 0 / 356.6 MB, free: 14.84 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.0009822/0.09846, allocations: 0.5966 MB / 357.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.0985, allocations: 8.031 kB / 357.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.384e-05/0.09857, allocations: 40.47 kB / 357.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.09884, allocations: 268.3 kB / 357.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.09888, allocations: 29.02 kB / 357.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.09893, allocations: 28.38 kB / 357.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005953/0.09954, allocations: 306.3 kB / 357.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.09956, allocations: 3.938 kB / 357.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.743e-05/0.09959, allocations: 12 kB / 357.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.09961, allocations: 8 kB / 357.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006405/0.1003, allocations: 270.5 kB / 358.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.1018, allocations: 1.128 MB / 359.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.1022, allocations: 154.5 kB / 359.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.1024, allocations: 76.77 kB / 359.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.1025, allocations: 0 / 359.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.1025, allocations: 42.53 kB / 359.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 9.52e-07/0.1025, allocations: 0 / 359.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002117/0.1046, allocations: 0.6709 MB / 360.3 MB, free: 11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.1047, allocations: 59.41 kB / 360.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/0.1049, allocations: 262.5 kB / 360.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.105, allocations: 29.7 kB / 360.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.1051, allocations: 223.5 kB / 360.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.593e-05/0.1052, allocations: 78.98 kB / 360.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/0.1052, allocations: 33.7 kB / 360.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1053, allocations: 330.8 kB / 361.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003046/0.1057, allocations: 107.9 kB / 361.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003662/0.106, allocations: 204.2 kB / 361.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006665/0.1067, allocations: 322.1 kB / 361.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1067, allocations: 4 kB / 361.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008829/0.1076, allocations: 421.2 kB / 362.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1076, allocations: 7.984 kB / 362.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1076, allocations: 4 kB / 362.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002237/0.1079, allocations: 57.69 kB / 362.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003305/0.1082, allocations: 75.89 kB / 362.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/0.1101, allocations: 2.644 MB / 365.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.1104, allocations: 27.98 kB / 365.1 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.1105, allocations: 12 kB / 365.1 MB, free: 5.727 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 (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.0001477/0.1106, allocations: 157.7 kB / 365.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.855e-05/0.1107, allocations: 27.72 kB / 365.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.36e-05/0.1107, allocations: 30.17 kB / 365.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1107, allocations: 4 kB / 365.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1108, allocations: 0 / 365.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.1108, allocations: 0 / 365.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003411/0.1111, allocations: 325.5 kB / 365.6 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.1111, allocations: 3.938 kB / 365.6 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.1113, allocations: 47.91 kB / 365.7 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001466/0.1115, allocations: 61.61 kB / 365.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.1115, allocations: 4 kB / 365.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/0.1133, allocations: 2.635 MB / 368.4 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1133, allocations: 0 / 368.4 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007671/0.1141, allocations: 396.7 kB / 368.8 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.807e-05/0.1141, allocations: 100.8 kB / 368.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.1142, allocations: 0 / 368.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1144, allocations: 27.98 kB / 368.9 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.1145, allocations: 19.97 kB / 368.9 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.1145, allocations: 4 kB / 368.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000178/0.1147, allocations: 186 kB / 369.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1147, allocations: 0 / 369.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003838/0.1151, allocations: 72 kB / 369.2 MB, free: 1.285 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 (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.0001208/0.1152, allocations: 111.3 kB / 369.3 MB, free: 1.168 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009798/0.1162, allocations: 0.4939 MB / 369.8 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1162, allocations: 4.062 kB / 369.8 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005045/0.1167, allocations: 350.6 kB / 370.1 MB, free: 284 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.1171, allocations: 36.55 kB / 370.2 MB, free: 248 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1426/0.2597, allocations: 0.7027 MB / 370.9 MB, free: 24.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.26, allocations: 0.782 MB / 371.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001708/0.2602, allocations: 25.06 kB / 371.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.453e-05/0.2602, allocations: 23.25 kB / 371.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2602, allocations: 0 / 371.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of Templates: time 0.006586/0.2668, allocations: 2.488 MB / 374.2 MB, free: 23.43 MB / 302.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