Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 113 kB / 17.68 MB, free: 5.473 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.001088/0.001088, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.354/1.354, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008704/0.0008705, allocations: 51.56 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1285, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004737/0.1333, allocations: 3.485 MB / 355 MB, free: 180 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.135, allocations: 0.9308 MB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.1352, allocations: 8 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002428/0.1355, allocations: 91.11 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003342/0.1358, allocations: 162.7 kB / 356.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.1362, allocations: 171.8 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005102/0.1367, allocations: 0.6278 MB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002693/0.137, allocations: 189.5 kB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.1372, allocations: 239 kB / 357.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.1375, allocations: 274.7 kB / 357.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.532e-05/0.1376, allocations: 59.94 kB / 357.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.81e-05/0.1377, allocations: 52 kB / 357.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.088e-05/0.1377, allocations: 123.5 kB / 357.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.138, allocations: 286.5 kB / 358.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004815/0.1385, allocations: 0.6188 MB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1385, allocations: 0 / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1385, allocations: 0 / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.1385, allocations: 4 kB / 358.8 MB, free: 12.36 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001314/0.1398, allocations: 0.8576 MB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.1399, allocations: 8.031 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.259e-05/0.14, allocations: 68.19 kB / 359.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004456/0.1404, allocations: 347 kB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.1405, allocations: 37.69 kB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.728e-05/0.1406, allocations: 48.38 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007318/0.1413, allocations: 442.4 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1413, allocations: 0 / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.1414, allocations: 23.94 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.1414, allocations: 16 kB / 360.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007665/0.1422, allocations: 393 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.1444, allocations: 1.569 MB / 362.6 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007067/0.1451, allocations: 398.6 kB / 363 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004411/0.1456, allocations: 189.3 kB / 363.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.353e-05/0.1456, allocations: 4.328 kB / 363.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.1457, allocations: 38.89 kB / 363.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.543e-06/0.1457, allocations: 0 / 363.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.003262/0.149, allocations: 1.191 MB / 364.4 MB, free: 6.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.149, allocations: 59.97 kB / 364.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005315/0.1496, allocations: 397.5 kB / 364.8 MB, free: 6.043 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.1496, allocations: 33.7 kB / 364.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.1499, allocations: 303.8 kB / 365.1 MB, free: 5.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/0.15, allocations: 185.3 kB / 365.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.1502, allocations: 110.2 kB / 365.4 MB, free: 5.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.1504, allocations: 358.8 kB / 365.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004132/0.1508, allocations: 185.2 kB / 366 MB, free: 4.863 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.1514, allocations: 297.1 kB / 366.3 MB, free: 4.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009187/0.1523, allocations: 494.5 kB / 366.7 MB, free: 4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1523, allocations: 0 / 366.7 MB, free: 4 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001396/0.1537, allocations: 0.7457 MB / 367.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.1537, allocations: 4 kB / 367.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.1538, allocations: 8.094 kB / 367.5 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005405/0.1543, allocations: 181.7 kB / 367.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004489/0.1548, allocations: 115.8 kB / 367.8 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1965/0.3512, allocations: 4.265 MB / 372.1 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005562/0.3518, allocations: 29.45 kB / 372.1 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.882e-05/0.3519, allocations: 23.64 kB / 372.1 MB, free: 23.68 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 (58): * Single equations (assignments): 56 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002945/0.3522, allocations: 179.4 kB / 372.3 MB, free: 23.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.035e-05/0.3523, allocations: 51.89 kB / 372.3 MB, free: 23.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001365/0.3524, allocations: 60.81 kB / 372.4 MB, free: 23.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.3525, allocations: 6 kB / 372.4 MB, free: 23.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.322e-05/0.3525, allocations: 3.375 kB / 372.4 MB, free: 23.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.3525, allocations: 8.109 kB / 372.4 MB, free: 23.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002516/0.355, allocations: 1.3 MB / 373.7 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.3551, allocations: 4.094 kB / 373.7 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.3554, allocations: 65.23 kB / 373.8 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004178/0.3558, allocations: 163.4 kB / 373.9 MB, free: 23.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.89e-05/0.3558, allocations: 18.39 kB / 374 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003594/0.3594, allocations: 4.091 MB / 378 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.145e-06/0.3595, allocations: 1.344 kB / 378 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.3607, allocations: 0.7066 MB / 378.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.3608, allocations: 121.5 kB / 378.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.764e-05/0.3608, allocations: 15.94 kB / 378.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.3611, allocations: 26.45 kB / 378.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.3612, allocations: 43.91 kB / 379 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.3613, allocations: 15.7 kB / 379 MB, free: 18.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003075/0.3616, allocations: 276.7 kB / 379.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3616, allocations: 0 / 379.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007459/0.3623, allocations: 156.5 kB / 379.4 MB, free: 18.81 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 33 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001301/0.3625, allocations: 120.3 kB / 379.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.364, allocations: 0.7821 MB / 380.3 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.364, allocations: 112 / 380.3 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007465/0.3647, allocations: 0.5295 MB / 380.8 MB, free: 17.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.3652, allocations: 45.17 kB / 380.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.3669, allocations: 0.9333 MB / 381.8 MB, free: 17.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.3673, allocations: 0.8571 MB / 382.7 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001712/0.3675, allocations: 48 kB / 382.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.526e-05/0.3676, allocations: 33.11 kB / 382.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3676, allocations: 0 / 382.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01031/0.3779, allocations: 5.025 MB / 387.8 MB, free: 15.91 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches