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.001042/0.001042, allocations: 112 kB / 17.07 MB, free: 5.945 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.001052/0.001052, allocations: 196 kB / 18.01 MB, free: 5.035 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 51.91 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3047, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003858/0.3086, allocations: 2.793 MB / 403.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.3098, allocations: 0.7477 MB / 404.3 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.31, allocations: 8 kB / 404.3 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.3102, allocations: 67.44 kB / 404.3 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.3105, allocations: 95.23 kB / 404.4 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.3107, allocations: 107.8 kB / 404.5 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003598/0.3111, allocations: 394.5 kB / 404.9 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.3114, allocations: 118.9 kB / 405 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.3116, allocations: 155.4 kB / 405.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001941/0.3118, allocations: 171.2 kB / 405.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.506e-05/0.3119, allocations: 36 kB / 405.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.461e-05/0.3119, allocations: 32 kB / 405.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.384e-05/0.312, allocations: 75.75 kB / 405.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001466/0.3121, allocations: 175.1 kB / 405.7 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003519/0.3125, allocations: 395.7 kB / 406.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3125, allocations: 0 / 406.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.3125, allocations: 0 / 406.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.3125, allocations: 3.938 kB / 406.1 MB, free: 3.512 MB / 318.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.001105/0.3136, allocations: 0.6354 MB / 406.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.3137, allocations: 15.89 kB / 406.7 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.921e-05/0.3138, allocations: 36.47 kB / 406.7 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003337/0.3141, allocations: 264.9 kB / 407 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.3141, allocations: 33.03 kB / 407 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.3142, allocations: 32.31 kB / 407.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005777/0.3148, allocations: 290.4 kB / 407.3 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3148, allocations: 0 / 407.3 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.3148, allocations: 15.98 kB / 407.4 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.3149, allocations: 8 kB / 407.4 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006001/0.3155, allocations: 254.5 kB / 407.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.3171, allocations: 1.104 MB / 408.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.3175, allocations: 156.9 kB / 408.9 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.3177, allocations: 68.81 kB / 408.9 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.3178, allocations: 4 kB / 408.9 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.3178, allocations: 34.56 kB / 409 MB, free: 380 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.3178, allocations: 0 / 409 MB, free: 380 kB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.002094/0.3199, allocations: 0.5988 MB / 409.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.32, allocations: 59.41 kB / 409.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.3202, allocations: 266.5 kB / 409.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.3203, allocations: 29.7 kB / 409.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.3204, allocations: 223.5 kB / 410.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.123e-05/0.3204, allocations: 67 kB / 410.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.411e-05/0.3205, allocations: 65.61 kB / 410.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3207, allocations: 334.8 kB / 410.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003102/0.321, allocations: 99.92 kB / 410.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/0.3213, allocations: 195.9 kB / 410.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006169/0.322, allocations: 305.8 kB / 411.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.322, allocations: 0 / 411.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008539/0.3228, allocations: 389.2 kB / 411.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.3229, allocations: 8 kB / 411.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3229, allocations: 4 kB / 411.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002553/0.3231, allocations: 61.83 kB / 411.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/0.3235, allocations: 75.83 kB / 411.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.3255, allocations: 2.844 MB / 414.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.3258, allocations: 23.97 kB / 414.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.3258, allocations: 19.97 kB / 414.6 MB, free: 10.3 MB / 334.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.0001744/0.326, allocations: 153.8 kB / 414.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.029e-05/0.3261, allocations: 23.72 kB / 414.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.234e-05/0.3261, allocations: 30.17 kB / 414.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3261, allocations: 7.938 kB / 414.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3262, allocations: 0 / 414.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3262, allocations: 0 / 414.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003684/0.3265, allocations: 333.4 kB / 415.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.3266, allocations: 0 / 415.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002085/0.3268, allocations: 39.95 kB / 415.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.3269, allocations: 57.62 kB / 415.2 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.327, allocations: 7.938 kB / 415.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/0.3288, allocations: 2.829 MB / 418.1 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3288, allocations: 0 / 418.1 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007371/0.3295, allocations: 371 kB / 418.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.058e-05/0.3296, allocations: 112.7 kB / 418.5 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.3297, allocations: 3.938 kB / 418.5 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.3299, allocations: 15.98 kB / 418.6 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.153e-05/0.33, allocations: 19.97 kB / 418.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.33, allocations: 8 kB / 418.6 MB, free: 5.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002001/0.3302, allocations: 190 kB / 418.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3302, allocations: 0 / 418.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004317/0.3307, allocations: 68 kB / 418.8 MB, free: 5.684 MB / 334.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.0001397/0.3308, allocations: 111.1 kB / 419 MB, free: 5.566 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.3318, allocations: 485.1 kB / 419.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.3319, allocations: 0 / 419.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005129/0.3324, allocations: 350.1 kB / 419.8 MB, free: 4.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/0.3328, allocations: 30.83 kB / 419.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.3339, allocations: 0.5376 MB / 420.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.3343, allocations: 0.7713 MB / 421.1 MB, free: 3.309 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.3344, allocations: 30.41 kB / 421.1 MB, free: 3.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.079e-05/0.3345, allocations: 23.44 kB / 421.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3345, allocations: 0 / 421.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of Templates: time 0.006698/0.3412, allocations: 2.749 MB / 423.9 MB, free: 0.5156 MB / 334.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