Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001166/0.001166, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001512/0.001512, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002323, allocations: 59.03 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1264, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004507/0.1309, allocations: 2.82 MB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.1326, allocations: 0.7826 MB / 362.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.1327, allocations: 4 kB / 362.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002475/0.133, allocations: 71.36 kB / 362.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002888/0.1333, allocations: 87.25 kB / 362.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.1336, allocations: 119.8 kB / 362.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003589/0.134, allocations: 390.5 kB / 363.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002072/0.1342, allocations: 130.9 kB / 363.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002701/0.1345, allocations: 155.4 kB / 363.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.1347, allocations: 171.2 kB / 363.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.503e-05/0.1347, allocations: 35.98 kB / 363.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.596e-05/0.1348, allocations: 36 kB / 363.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.644e-05/0.1348, allocations: 67.77 kB / 363.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001409/0.135, allocations: 179.1 kB / 363.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003389/0.1353, allocations: 394.6 kB / 364.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1353, allocations: 7.875 kB / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1353, allocations: 0 / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.1354, allocations: 4 kB / 364.3 MB, free: 7.891 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.00106/0.1364, allocations: 0.6393 MB / 365 MB, free: 7.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.1365, allocations: 12.03 kB / 365 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.084e-05/0.1366, allocations: 36.47 kB / 365 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003544/0.1369, allocations: 272.6 kB / 365.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.137, allocations: 28.97 kB / 365.3 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.06e-05/0.137, allocations: 32.36 kB / 365.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005542/0.1376, allocations: 290.4 kB / 365.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1376, allocations: 0 / 365.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.1376, allocations: 12 kB / 365.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.1376, allocations: 12 kB / 365.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005593/0.1382, allocations: 246.5 kB / 365.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.1398, allocations: 1.116 MB / 367 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003486/0.1401, allocations: 154.5 kB / 367.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.1403, allocations: 72.81 kB / 367.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.1404, allocations: 7.906 kB / 367.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.1404, allocations: 30.56 kB / 367.3 MB, free: 4.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.463e-06/0.1404, allocations: 0 / 367.3 MB, free: 4.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001924/0.1423, allocations: 0.5936 MB / 367.9 MB, free: 4.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.1424, allocations: 51.41 kB / 367.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002869/0.1427, allocations: 274.5 kB / 368.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.1427, allocations: 29.7 kB / 368.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.1428, allocations: 227.5 kB / 368.4 MB, free: 3.531 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.488e-05/0.1429, allocations: 74.92 kB / 368.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.468e-05/0.143, allocations: 69.38 kB / 368.6 MB, free: 3.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1431, allocations: 338.8 kB / 368.9 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.1434, allocations: 95.94 kB / 369 MB, free: 2.949 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003166/0.1437, allocations: 196 kB / 369.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005598/0.1443, allocations: 302.8 kB / 369.5 MB, free: 2.375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1443, allocations: 0 / 369.5 MB, free: 2.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007814/0.1451, allocations: 392.9 kB / 369.9 MB, free: 1.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.1452, allocations: 4 kB / 369.9 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1452, allocations: 4.406 kB / 369.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002409/0.1454, allocations: 61.67 kB / 369.9 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.1457, allocations: 75.83 kB / 370 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2034/0.3492, allocations: 2.826 MB / 372.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003942/0.3496, allocations: 23.38 kB / 372.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.077e-05/0.3496, allocations: 14.72 kB / 372.9 MB, free: 18.56 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.0001734/0.3498, allocations: 160.3 kB / 373 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.33e-05/0.3499, allocations: 25.38 kB / 373 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.702e-05/0.35, allocations: 29.23 kB / 373.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.35, allocations: 4.188 kB / 373.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.35, allocations: 1.594 kB / 373.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.35, allocations: 2.328 kB / 373.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004058/0.3504, allocations: 332.8 kB / 373.4 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3504, allocations: 2.938 kB / 373.4 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002326/0.3507, allocations: 43.38 kB / 373.5 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.3509, allocations: 55.84 kB / 373.5 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.3509, allocations: 3.906 kB / 373.5 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.3523, allocations: 2.834 MB / 376.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3524, allocations: 0 / 376.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006969/0.3531, allocations: 377.3 kB / 376.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.3531, allocations: 101 kB / 376.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.3532, allocations: 2 kB / 376.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.3534, allocations: 17.05 kB / 376.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.466e-05/0.3535, allocations: 22.44 kB / 376.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.3535, allocations: 6.812 kB / 376.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.3537, allocations: 191.5 kB / 377 MB, free: 15.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3537, allocations: 1.625 kB / 377 MB, free: 15.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004493/0.3542, allocations: 73.72 kB / 377.1 MB, free: 15.25 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.0001185/0.3543, allocations: 101.2 kB / 377.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009681/0.3553, allocations: 482.1 kB / 377.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3553, allocations: 7.422 kB / 377.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000473/0.3558, allocations: 342.1 kB / 378 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.3561, allocations: 36.55 kB / 378.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.3572, allocations: 0.5477 MB / 378.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.3575, allocations: 0.7723 MB / 379.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.3576, allocations: 30.27 kB / 379.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.094e-05/0.3577, allocations: 21.09 kB / 379.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3577, allocations: 0 / 379.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of Templates: time 0.00748/0.3651, allocations: 2.706 MB / 382.1 MB, free: 13.52 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches