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.001168/0.001168, allocations: 112 kB / 16.62 MB, free: 6.812 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.001209/0.001209, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.286/1.286, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009276/0.0009276, allocations: 42.89 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.09106, allocations: 49.45 MB / 349.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004041/0.09514, allocations: 2.826 MB / 352.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.0963, allocations: 0.7516 MB / 353.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.09646, allocations: 4 kB / 353.2 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002306/0.09671, allocations: 55.61 kB / 353.2 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002498/0.09697, allocations: 75.44 kB / 353.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.09721, allocations: 95.86 kB / 353.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003278/0.09755, allocations: 392.5 kB / 353.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.09779, allocations: 130.9 kB / 353.9 MB, free: 440 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.098, allocations: 147.4 kB / 354 MB, free: 292 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.09818, allocations: 175.2 kB / 354.2 MB, free: 116 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.699e-05/0.09823, allocations: 32 kB / 354.2 MB, free: 84 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.437e-05/0.09828, allocations: 32 kB / 354.3 MB, free: 52 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.627e-05/0.09835, allocations: 75.83 kB / 354.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.09848, allocations: 171 kB / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003003/0.09878, allocations: 390.8 kB / 354.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.0988, allocations: 0 / 354.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.0988, allocations: 4 kB / 354.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.09882, allocations: 0 / 354.9 MB, free: 15.42 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.001035/0.09986, allocations: 0.6393 MB / 355.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.0999, allocations: 11.89 kB / 355.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.368e-05/0.09997, allocations: 36.56 kB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002668/0.1002, allocations: 264.3 kB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.1003, allocations: 28.97 kB / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.062e-05/0.1003, allocations: 32.38 kB / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005556/0.1009, allocations: 290.3 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1009, allocations: 3.938 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.1009, allocations: 16 kB / 356.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.101, allocations: 8 kB / 356.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005677/0.1015, allocations: 250.5 kB / 356.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.1031, allocations: 1.124 MB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003553/0.1035, allocations: 158.5 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.1037, allocations: 60.83 kB / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.1037, allocations: 0 / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.1037, allocations: 46.55 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 9.82e-07/0.1037, allocations: 0 / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001923/0.1057, allocations: 0.5834 MB / 358.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.1057, allocations: 59.41 kB / 358.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.106, allocations: 266.4 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.106, allocations: 33.7 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.1061, allocations: 219.5 kB / 359 MB, free: 11.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.323e-05/0.1062, allocations: 78.91 kB / 359.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.36e-05/0.1063, allocations: 57.61 kB / 359.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1064, allocations: 338.8 kB / 359.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002772/0.1067, allocations: 95.92 kB / 359.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.107, allocations: 188.1 kB / 359.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005876/0.1076, allocations: 305.1 kB / 360 MB, free: 9.926 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1076, allocations: 0 / 360 MB, free: 9.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007928/0.1084, allocations: 397.3 kB / 360.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.1084, allocations: 7.125 kB / 360.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1085, allocations: 4 kB / 360.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002152/0.1087, allocations: 57.69 kB / 360.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003153/0.109, allocations: 75.89 kB / 360.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.1108, allocations: 2.841 MB / 363.4 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002539/0.1111, allocations: 19.98 kB / 363.4 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.713e-05/0.1111, allocations: 16 kB / 363.4 MB, free: 6.223 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.0001377/0.1112, allocations: 161.6 kB / 363.6 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.863e-05/0.1113, allocations: 23.72 kB / 363.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.258e-05/0.1114, allocations: 30.19 kB / 363.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1114, allocations: 0 / 363.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1114, allocations: 7.984 kB / 363.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1114, allocations: 0 / 363.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.1117, allocations: 333.4 kB / 364 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1117, allocations: 3.938 kB / 364 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.1119, allocations: 39.97 kB / 364 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000144/0.1121, allocations: 57.61 kB / 364.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.1121, allocations: 4 kB / 364.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/0.1138, allocations: 2.829 MB / 366.9 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1138, allocations: 7.984 kB / 366.9 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006665/0.1145, allocations: 374.8 kB / 367.3 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/0.1146, allocations: 96.77 kB / 367.4 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.1146, allocations: 15.98 kB / 367.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.1148, allocations: 11.98 kB / 367.4 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.808e-05/0.1149, allocations: 23.91 kB / 367.4 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.1149, allocations: 8 kB / 367.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001543/0.1151, allocations: 178 kB / 367.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1151, allocations: 0 / 367.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003555/0.1154, allocations: 76 kB / 367.7 MB, free: 1.59 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.000103/0.1156, allocations: 107.2 kB / 367.8 MB, free: 1.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008598/0.1164, allocations: 489.3 kB / 368.3 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1164, allocations: 0 / 368.3 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004671/0.1169, allocations: 345.2 kB / 368.6 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.1173, allocations: 37.23 kB / 368.6 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1301/0.2474, allocations: 0.6682 MB / 369.3 MB, free: 25.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.2477, allocations: 0.7725 MB / 370.1 MB, free: 24.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001871/0.2479, allocations: 28.23 kB / 370.1 MB, free: 24.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.695e-05/0.2479, allocations: 26.69 kB / 370.1 MB, free: 24.76 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2479, allocations: 0 / 370.1 MB, free: 24.76 MB / 302.1 MB Notification: Performance of Templates: time 0.006815/0.2548, allocations: 2.625 MB / 372.8 MB, free: 24.7 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