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.001244/0.001243, allocations: 112.8 kB / 17.06 MB, free: 5.773 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.001157/0.001157, allocations: 200 kB / 18.01 MB, free: 4.914 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.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3145, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003862/0.3184, allocations: 2.798 MB / 403.5 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.3197, allocations: 0.7399 MB / 404.3 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.3199, allocations: 8 kB / 404.3 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002089/0.3201, allocations: 67.36 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.3204, allocations: 99.2 kB / 404.4 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.3206, allocations: 107.7 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003447/0.321, allocations: 390.6 kB / 404.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.3212, allocations: 126.9 kB / 405 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002394/0.3215, allocations: 151.4 kB / 405.2 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.3217, allocations: 175.2 kB / 405.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.606e-05/0.3217, allocations: 32 kB / 405.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.771e-05/0.3218, allocations: 32 kB / 405.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.529e-05/0.3219, allocations: 75.7 kB / 405.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.322, allocations: 175.1 kB / 405.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004494/0.3225, allocations: 398.1 kB / 406.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3225, allocations: 0 / 406.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3225, allocations: 0 / 406.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.3225, allocations: 0 / 406.1 MB, free: 3.523 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.001217/0.3237, allocations: 0.6467 MB / 406.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3238, allocations: 15.89 kB / 406.7 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.116e-05/0.3239, allocations: 36.7 kB / 406.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.3243, allocations: 273 kB / 407 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/0.3243, allocations: 25.03 kB / 407 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.155e-05/0.3244, allocations: 28.38 kB / 407.1 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006468/0.325, allocations: 298.3 kB / 407.4 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.325, allocations: 3.938 kB / 407.4 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.3251, allocations: 12 kB / 407.4 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.617e-06/0.3251, allocations: 4 kB / 407.4 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006055/0.3257, allocations: 250.5 kB / 407.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.3274, allocations: 1.116 MB / 408.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.3278, allocations: 158.5 kB / 408.9 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.328, allocations: 72.77 kB / 409 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.328, allocations: 3.906 kB / 409 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.3281, allocations: 30.56 kB / 409 MB, free: 368 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.3281, allocations: 4 kB / 409 MB, free: 364 kB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.002005/0.3301, allocations: 0.5917 MB / 409.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.3301, allocations: 59.39 kB / 409.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003083/0.3304, allocations: 266.5 kB / 409.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.3305, allocations: 25.7 kB / 409.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.3306, allocations: 236.1 kB / 410.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.574e-05/0.3307, allocations: 79.27 kB / 410.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.85e-05/0.3308, allocations: 65.66 kB / 410.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3309, allocations: 338.8 kB / 410.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002758/0.3312, allocations: 87.94 kB / 410.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003946/0.3316, allocations: 199.9 kB / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006019/0.3322, allocations: 301.8 kB / 411.2 MB, free: 14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3322, allocations: 0 / 411.2 MB, free: 14 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000805/0.333, allocations: 405.4 kB / 411.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.3331, allocations: 7.984 kB / 411.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3331, allocations: 7.984 kB / 411.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002671/0.3334, allocations: 53.69 kB / 411.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/0.3337, allocations: 75.89 kB / 411.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/0.3357, allocations: 2.833 MB / 414.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/0.336, allocations: 28.11 kB / 414.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.336, allocations: 12 kB / 414.6 MB, free: 10.29 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.0001613/0.3362, allocations: 153.7 kB / 414.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.021e-05/0.3362, allocations: 27.81 kB / 414.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.058e-05/0.3363, allocations: 34.17 kB / 414.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.3363, allocations: 3.938 kB / 414.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3363, allocations: 11.94 kB / 414.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3364, allocations: 3.984 kB / 414.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000358/0.3367, allocations: 329.4 kB / 415.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3367, allocations: 0 / 415.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.3369, allocations: 39.97 kB / 415.2 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001484/0.3371, allocations: 57.67 kB / 415.3 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.3371, allocations: 4 kB / 415.3 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.3391, allocations: 2.833 MB / 418.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3391, allocations: 0 / 418.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007346/0.3398, allocations: 379.3 kB / 418.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.197e-05/0.3399, allocations: 104.9 kB / 418.6 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.3399, allocations: 0 / 418.6 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.3401, allocations: 19.97 kB / 418.6 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.925e-05/0.3402, allocations: 15.98 kB / 418.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.3402, allocations: 7.984 kB / 418.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001682/0.3404, allocations: 186 kB / 418.8 MB, free: 5.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3404, allocations: 0 / 418.8 MB, free: 5.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003786/0.3408, allocations: 76 kB / 418.9 MB, free: 5.652 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.0001181/0.3409, allocations: 103.2 kB / 419 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000926/0.3418, allocations: 485 kB / 419.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3419, allocations: 0 / 419.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004852/0.3423, allocations: 346 kB / 419.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.3427, allocations: 32.56 kB / 419.8 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009996/0.3437, allocations: 0.5515 MB / 420.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/0.3442, allocations: 0.7714 MB / 421.2 MB, free: 3.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.3443, allocations: 26.28 kB / 421.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.3e-05/0.3443, allocations: 23.44 kB / 421.2 MB, free: 3.219 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3443, allocations: 3.938 kB / 421.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of Templates: time 0.007201/0.3516, allocations: 2.743 MB / 423.9 MB, free: 492 kB / 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