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.001275/0.001275, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001266/0.001266, allocations: 188.5 kB / 18.67 MB, free: 4.441 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.3/1.3, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 43.94 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2387, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004545/0.2433, allocations: 3.488 MB / 404.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.2448, allocations: 0.9308 MB / 405.8 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/0.245, allocations: 4 kB / 405.8 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002582/0.2453, allocations: 91.16 kB / 405.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003421/0.2456, allocations: 158.7 kB / 406.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.246, allocations: 179.6 kB / 406.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005995/0.2466, allocations: 0.627 MB / 406.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003005/0.2469, allocations: 185.5 kB / 407.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.2472, allocations: 243 kB / 407.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003044/0.2475, allocations: 278.6 kB / 407.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.105e-05/0.2476, allocations: 56 kB / 407.6 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.718e-05/0.2477, allocations: 52 kB / 407.7 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.902e-05/0.2478, allocations: 115.6 kB / 407.8 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002305/0.248, allocations: 290.5 kB / 408.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005577/0.2486, allocations: 0.6238 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2486, allocations: 0 / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2486, allocations: 0 / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.2486, allocations: 0 / 408.7 MB, free: 1.559 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00138/0.25, allocations: 0.8498 MB / 409.5 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.2501, allocations: 12.03 kB / 409.6 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.289e-05/0.2502, allocations: 68.12 kB / 409.6 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004254/0.2506, allocations: 343.1 kB / 410 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.2506, allocations: 37.69 kB / 410 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.626e-05/0.2507, allocations: 52.31 kB / 410 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007482/0.2515, allocations: 442.5 kB / 410.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.2515, allocations: 3.984 kB / 410.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/0.2515, allocations: 20 kB / 410.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2516, allocations: 16 kB / 410.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007913/0.2524, allocations: 393 kB / 410.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.2546, allocations: 1.565 MB / 412.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006545/0.2553, allocations: 398.2 kB / 412.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003716/0.2557, allocations: 185.3 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.2557, allocations: 4.328 kB / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.2557, allocations: 34.89 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 2.785e-06/0.2557, allocations: 3.984 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.002976/0.2587, allocations: 1.195 MB / 414.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.2588, allocations: 55.97 kB / 414.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.2592, allocations: 397.5 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.2592, allocations: 41.7 kB / 414.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.2594, allocations: 303.8 kB / 415.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.2595, allocations: 185.3 kB / 415.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.2597, allocations: 110.2 kB / 415.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.2598, allocations: 354.8 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003916/0.2602, allocations: 181.2 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004767/0.2607, allocations: 295 kB / 416.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008395/0.2616, allocations: 498.5 kB / 416.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2616, allocations: 8 kB / 416.6 MB, free: 9.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001324/0.2629, allocations: 0.7418 MB / 417.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.2629, allocations: 8 kB / 417.4 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.263, allocations: 4 kB / 417.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004881/0.2635, allocations: 184.3 kB / 417.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004648/0.2639, allocations: 119.8 kB / 417.7 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003943/0.2679, allocations: 4.27 MB / 422 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/0.2683, allocations: 27.98 kB / 422 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.2684, allocations: 24 kB / 422 MB, free: 3.539 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 (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.0002434/0.2686, allocations: 186.2 kB / 422.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.257e-05/0.2687, allocations: 43.44 kB / 422.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.2688, allocations: 64.97 kB / 422.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.2688, allocations: 8.062 kB / 422.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-05/0.2688, allocations: 4 kB / 422.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.2689, allocations: 3.984 kB / 422.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.2709, allocations: 1.307 MB / 423.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2709, allocations: 0 / 423.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.2712, allocations: 71.89 kB / 423.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003847/0.2716, allocations: 165.5 kB / 423.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.2717, allocations: 8 kB / 423.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003476/0.2751, allocations: 4.091 MB / 428 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2752, allocations: 4.125 kB / 428 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.2763, allocations: 0.7052 MB / 428.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.2764, allocations: 124.5 kB / 428.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.225e-05/0.2765, allocations: 12 kB / 428.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.2768, allocations: 23.97 kB / 428.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.2769, allocations: 48.31 kB / 428.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.2769, allocations: 12 kB / 428.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002763/0.2772, allocations: 279.2 kB / 429.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.2772, allocations: 4.109 kB / 429.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006672/0.2779, allocations: 151.9 kB / 429.3 MB, free: 11.83 MB / 350.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.0001391/0.278, allocations: 114 kB / 429.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.2794, allocations: 0.7814 MB / 430.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2794, allocations: 0 / 430.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007436/0.2802, allocations: 0.5347 MB / 430.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.2806, allocations: 41.5 kB / 430.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.2822, allocations: 0.973 MB / 431.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.2826, allocations: 0.8553 MB / 432.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.2828, allocations: 39.42 kB / 432.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2828, allocations: 0 / 432.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of Templates: time 0.01151/0.2943, allocations: 9.724 MB / 442.4 MB, free: 14.62 MB / 366.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 -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