Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.0008044/0.0008044, allocations: 93.47 kB / 17.31 MB, free: 6.535 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.001043/0.001043, allocations: 175.4 kB / 18.21 MB, free: 5.684 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.115/1.115, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000199/0.000199, allocations: 15.92 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07009/0.0703, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005204/0.07554, allocations: 6.139 MB / 358.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.07814, allocations: 2.335 MB / 361 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.07836, allocations: 20 kB / 361 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005708/0.07894, allocations: 386.5 kB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001053/0.08, allocations: 0.6141 MB / 362 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001657/0.08167, allocations: 1.118 MB / 363.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000807/0.08248, allocations: 1.063 MB / 364.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002391/0.08488, allocations: 1.738 MB / 365.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003576/0.08525, allocations: 410.2 kB / 366.3 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004664/0.08573, allocations: 0.5522 MB / 366.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.453e-05/0.08581, allocations: 52 kB / 366.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000514/0.08633, allocations: 371.6 kB / 367.3 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.08645, allocations: 191.1 kB / 367.5 MB, free: 4.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003418/0.0868, allocations: 0.5184 MB / 368 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009001/0.08771, allocations: 1.243 MB / 369.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.08772, allocations: 4 kB / 369.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08773, allocations: 4 kB / 369.2 MB, free: 2.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.08774, allocations: 0 / 369.2 MB, free: 2.871 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.00498/0.09273, allocations: 1.826 MB / 371.1 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.09277, allocations: 12.03 kB / 371.1 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003123/0.09589, allocations: 0.5186 MB / 371.6 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.09612, allocations: 306.8 kB / 371.9 MB, free: 128 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.697e-05/0.09619, allocations: 94.95 kB / 372 MB, free: 32 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1265/0.2227, allocations: 127.2 kB / 372.1 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002696/0.2255, allocations: 1.316 MB / 373.4 MB, free: 23.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.988e-05/0.2255, allocations: 6.422 kB / 373.4 MB, free: 23.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/0.2256, allocations: 49.62 kB / 373.5 MB, free: 23.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.2257, allocations: 33.22 kB / 373.5 MB, free: 23.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002459/0.2281, allocations: 1.231 MB / 374.7 MB, free: 23.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005379/0.2335, allocations: 4.24 MB / 379 MB, free: 20.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.2355, allocations: 2.453 MB / 381.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008223/0.2363, allocations: 0.509 MB / 381.9 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.605e-05/0.2364, allocations: 110.1 kB / 382 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.2364, allocations: 45.72 kB / 382.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 2.344e-06/0.2365, allocations: 3.969 kB / 382.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.009851/0.2463, allocations: 4.071 MB / 386.2 MB, free: 16.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.2464, allocations: 94.92 kB / 386.3 MB, free: 16.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003318/0.2467, allocations: 392.3 kB / 386.6 MB, free: 16.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.2468, allocations: 46.17 kB / 386.7 MB, free: 16.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.2469, allocations: 452.4 kB / 387.1 MB, free: 16.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.2471, allocations: 424 kB / 387.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.2472, allocations: 102.3 kB / 387.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.251e-05/0.2473, allocations: 378.6 kB / 388 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000958/0.2483, allocations: 463.2 kB / 388.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.2493, allocations: 0.7208 MB / 389.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002003/0.2513, allocations: 1.228 MB / 390.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2513, allocations: 2.656 kB / 390.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002465/0.2538, allocations: 1.519 MB / 391.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.2538, allocations: 7.188 kB / 391.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.2538, allocations: 10.73 kB / 391.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004133/0.2543, allocations: 201.5 kB / 392.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.2553, allocations: 301.6 kB / 392.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002631/0.258, allocations: 3.974 MB / 396.4 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00079/0.2588, allocations: 85.7 kB / 396.5 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.615e-05/0.2589, allocations: 55.42 kB / 396.6 MB, free: 9.914 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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.0002892/0.2592, allocations: 276 kB / 396.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.82e-05/0.2592, allocations: 69.34 kB / 396.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002476/0.2617, allocations: 1.395 MB / 398.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.2617, allocations: 14.78 kB / 398.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2618, allocations: 4.156 kB / 398.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.2618, allocations: 7.969 kB / 398.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003395/0.2652, allocations: 2.678 MB / 401 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2652, allocations: 0 / 401 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008351/0.266, allocations: 234.9 kB / 401.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003046/0.2663, allocations: 165.6 kB / 401.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.883e-05/0.2664, allocations: 35.92 kB / 401.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.2686, allocations: 3.778 MB / 405.2 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2686, allocations: 4.062 kB / 405.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003055/0.2717, allocations: 1.949 MB / 407.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.2719, allocations: 224.2 kB / 407.4 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.75e-05/0.2719, allocations: 27.92 kB / 407.4 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006217/0.2726, allocations: 72.02 kB / 407.5 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.2727, allocations: 96.8 kB / 407.6 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.78e-05/0.2728, allocations: 35.98 kB / 407.6 MB, free: 92 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002262/0.273, allocations: 267.2 kB / 407.9 MB, free: 15.83 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.273, allocations: 3.938 kB / 407.9 MB, free: 15.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008602/0.2739, allocations: 304 kB / 408.2 MB, free: 15.53 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (106): * Single equations (assignments): 104 * 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.0002237/0.2741, allocations: 181 kB / 408.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002559/0.2767, allocations: 1.508 MB / 409.8 MB, free: 13.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2767, allocations: 0 / 409.8 MB, free: 13.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.278, allocations: 0.8874 MB / 410.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004855/0.2785, allocations: 76.75 kB / 410.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003413/0.2819, allocations: 2.525 MB / 413.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.2824, allocations: 1.012 MB / 414.3 MB, free: 9.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003016/0.2827, allocations: 87.39 kB / 414.4 MB, free: 9.145 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2827, allocations: 3.938 kB / 414.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of Templates: time 0.01777/0.3005, allocations: 19.4 MB / 433.8 MB, free: 5.734 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches