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.00111/0.00111, allocations: 108 kB / 16.92 MB, free: 6.332 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.001006/0.001006, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.298/1.298, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001162, allocations: 55.09 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09705/0.09823, allocations: 49.44 MB / 350.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004199/0.1025, allocations: 2.792 MB / 352.8 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.1039, allocations: 0.7554 MB / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002279/0.1041, allocations: 4 kB / 353.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002521/0.1044, allocations: 67.44 kB / 353.7 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003388/0.1047, allocations: 95.17 kB / 353.8 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.105, allocations: 103.8 kB / 353.9 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000412/0.1055, allocations: 386.5 kB / 354.2 MB, free: 224 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.1057, allocations: 130.9 kB / 354.4 MB, free: 92 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.106, allocations: 159.4 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.1063, allocations: 167.2 kB / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.289e-05/0.1064, allocations: 32 kB / 354.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.837e-05/0.1064, allocations: 36 kB / 354.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.944e-05/0.1065, allocations: 79.69 kB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.1067, allocations: 167.1 kB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003795/0.1071, allocations: 394.8 kB / 355.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1071, allocations: 0 / 355.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1071, allocations: 0 / 355.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.1071, allocations: 0 / 355.4 MB, free: 15.07 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.001166/0.1083, allocations: 0.6393 MB / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1083, allocations: 11.89 kB / 356 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.014e-05/0.1084, allocations: 36.56 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.1087, allocations: 268.3 kB / 356.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.1088, allocations: 25.03 kB / 356.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.1088, allocations: 28.38 kB / 356.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005529/0.1094, allocations: 294.3 kB / 356.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1094, allocations: 0 / 356.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/0.1094, allocations: 16 kB / 356.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.1094, allocations: 8 kB / 356.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006019/0.1101, allocations: 258.4 kB / 356.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.1117, allocations: 1.116 MB / 358.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003808/0.1121, allocations: 154.5 kB / 358.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.1123, allocations: 68.77 kB / 358.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.1124, allocations: 4 kB / 358.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.1124, allocations: 34.5 kB / 358.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.382e-06/0.1124, allocations: 4 kB / 358.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002119/0.1145, allocations: 0.5784 MB / 358.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.1146, allocations: 63.33 kB / 359 MB, free: 11.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.1148, allocations: 274.4 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.1149, allocations: 29.64 kB / 359.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.115, allocations: 227.5 kB / 359.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.106e-05/0.1151, allocations: 74.91 kB / 359.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.778e-05/0.1152, allocations: 65.61 kB / 359.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1153, allocations: 334.8 kB / 359.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002928/0.1156, allocations: 95.94 kB / 360 MB, free: 10.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003416/0.1159, allocations: 196 kB / 360.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000612/0.1166, allocations: 299 kB / 360.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1166, allocations: 4 kB / 360.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008742/0.1175, allocations: 397.2 kB / 360.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.1175, allocations: 11.98 kB / 360.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.1175, allocations: 0 / 360.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002404/0.1177, allocations: 57.69 kB / 361 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003261/0.1181, allocations: 75.89 kB / 361.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/0.1201, allocations: 2.833 MB / 363.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.1204, allocations: 19.98 kB / 363.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.1205, allocations: 16 kB / 363.9 MB, free: 5.871 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.0001721/0.1206, allocations: 157.7 kB / 364.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.227e-05/0.1207, allocations: 19.72 kB / 364.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.64e-05/0.1208, allocations: 38.17 kB / 364.1 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1208, allocations: 4 kB / 364.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1208, allocations: 0 / 364.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.1208, allocations: 4.125 kB / 364.1 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003872/0.1212, allocations: 329.4 kB / 364.5 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1212, allocations: 0 / 364.5 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/0.1214, allocations: 47.91 kB / 364.5 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001484/0.1216, allocations: 57.61 kB / 364.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.1216, allocations: 4 kB / 364.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/0.1235, allocations: 2.833 MB / 367.4 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1235, allocations: 0 / 367.4 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006942/0.1242, allocations: 375.5 kB / 367.8 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.787e-05/0.1243, allocations: 104.8 kB / 367.9 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.1244, allocations: 4 kB / 367.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.1246, allocations: 19.97 kB / 367.9 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.157e-05/0.1247, allocations: 15.98 kB / 367.9 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.1247, allocations: 11.98 kB / 367.9 MB, free: 1.492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001647/0.1248, allocations: 182 kB / 368.1 MB, free: 1.312 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.1249, allocations: 0 / 368.1 MB, free: 1.312 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003811/0.1252, allocations: 72 kB / 368.2 MB, free: 1.242 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.000125/0.1254, allocations: 111.1 kB / 368.3 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009553/0.1263, allocations: 493.1 kB / 368.8 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.1264, allocations: 0 / 368.8 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004841/0.1268, allocations: 349.9 kB / 369.1 MB, free: 256 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004006/0.1273, allocations: 30.05 kB / 369.1 MB, free: 228 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1401/0.2674, allocations: 0.5308 MB / 369.7 MB, free: 25.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002607/0.2677, allocations: 0.7726 MB / 370.4 MB, free: 24.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001935/0.2679, allocations: 30.47 kB / 370.5 MB, free: 24.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.092e-05/0.2679, allocations: 22.47 kB / 370.5 MB, free: 24.62 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.268, allocations: 1.219 kB / 370.5 MB, free: 24.62 MB / 302.1 MB Notification: Performance of Templates: time 0.007066/0.275, allocations: 2.689 MB / 373.2 MB, free: 24.56 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