Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.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.1.0-beta.om_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.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001328/0.001327, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.442/1.442, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002785/0.002786, allocations: 69.12 kB / 307.9 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1116, allocations: 50.53 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.00877/0.1204, allocations: 6.708 MB / 365.1 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004987/0.1255, allocations: 2.452 MB / 367.6 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008806/0.1264, allocations: 20 kB / 367.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004602/0.131, allocations: 1.886 MB / 369.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002083/0.1331, allocations: 0.5394 MB / 370 MB, free: 2.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002978/0.1361, allocations: 1.313 MB / 371.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1614/0.2976, allocations: 1.113 MB / 372.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002184/0.2998, allocations: 0.9366 MB / 373.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009598/0.3008, allocations: 491.3 kB / 373.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.3019, allocations: 0.6183 MB / 374.5 MB, free: 9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003769/0.3023, allocations: 100 kB / 374.6 MB, free: 9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.3037, allocations: 442.4 kB / 375 MB, free: 9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.3039, allocations: 253.9 kB / 375.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005336/0.3045, allocations: 0.5587 MB / 375.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001974/0.3065, allocations: 1.656 MB / 377.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.3065, allocations: 0 / 377.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3065, allocations: 1.375 kB / 377.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.018e-05/0.3065, allocations: 0 / 377.5 MB, free: 8.613 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.006496/0.313, allocations: 2.023 MB / 379.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.3131, allocations: 11.22 kB / 379.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003591/0.3167, allocations: 0.5082 MB / 380 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.3171, allocations: 312.3 kB / 380.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.3172, allocations: 102.1 kB / 380.4 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003043/0.3175, allocations: 125 kB / 380.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002376/0.3199, allocations: 1.292 MB / 381.9 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.945e-05/0.3199, allocations: 15.69 kB / 381.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/0.32, allocations: 58.94 kB / 381.9 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.65e-05/0.3201, allocations: 31.16 kB / 382 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002384/0.3224, allocations: 1.189 MB / 383.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006383/0.3288, allocations: 4.301 MB / 387.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/0.331, allocations: 2.454 MB / 389.9 MB, free: 2.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000907/0.332, allocations: 0.5062 MB / 390.4 MB, free: 1.836 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001676/0.3322, allocations: 190.2 kB / 390.6 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.3322, allocations: 45.16 kB / 390.6 MB, free: 1.594 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 3.096e-06/0.3322, allocations: 0 / 390.6 MB, free: 1.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.009841/0.3421, allocations: 3.758 MB / 394.4 MB, free: 15.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.179e-05/0.3422, allocations: 97.86 kB / 394.5 MB, free: 15.87 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000535/0.3427, allocations: 394.8 kB / 394.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.908e-05/0.3428, allocations: 45.77 kB / 394.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003043/0.3431, allocations: 453.4 kB / 395.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003606/0.3435, allocations: 429 kB / 395.8 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003615/0.3438, allocations: 227.4 kB / 396 MB, free: 14.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002044/0.3441, allocations: 377.6 kB / 396.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.3451, allocations: 436.7 kB / 396.8 MB, free: 14.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.3464, allocations: 0.6914 MB / 397.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002221/0.3486, allocations: 1.174 MB / 398.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3486, allocations: 2.938 kB / 398.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002946/0.3516, allocations: 1.461 MB / 400.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.3516, allocations: 13.34 kB / 400.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.3516, allocations: 9.531 kB / 400.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005377/0.3522, allocations: 207.9 kB / 400.4 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.3533, allocations: 284.9 kB / 400.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/0.358, allocations: 4.372 MB / 405 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.3591, allocations: 79.22 kB / 405.1 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.3592, allocations: 50.23 kB / 405.1 MB, free: 8.121 MB / 318.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.0005084/0.3597, allocations: 271.3 kB / 405.4 MB, free: 7.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/0.3599, allocations: 67.69 kB / 405.5 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.363, allocations: 1.337 MB / 406.8 MB, free: 6.641 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.363, allocations: 12 kB / 406.8 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.3631, allocations: 7.938 kB / 406.8 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.3631, allocations: 16.78 kB / 406.8 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005088/0.3682, allocations: 2.604 MB / 409.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.3682, allocations: 0 / 409.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00096/0.3692, allocations: 223.5 kB / 409.7 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004799/0.3697, allocations: 166.2 kB / 409.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.251e-05/0.3698, allocations: 33.8 kB / 409.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004339/0.3741, allocations: 4.183 MB / 414 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.3741, allocations: 7.938 kB / 414 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004122/0.3783, allocations: 1.867 MB / 415.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004557/0.3788, allocations: 224.2 kB / 416.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.3789, allocations: 20 kB / 416.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006875/0.3796, allocations: 59.95 kB / 416.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.3798, allocations: 88.94 kB / 416.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.217e-05/0.3799, allocations: 35.98 kB / 416.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003335/0.3802, allocations: 271.2 kB / 416.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3802, allocations: 0 / 416.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001217/0.3815, allocations: 312.1 kB / 416.9 MB, free: 12.21 MB / 334.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.0003427/0.3818, allocations: 178 kB / 417.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004065/0.3859, allocations: 1.497 MB / 418.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3859, allocations: 0 / 418.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.3876, allocations: 0.8661 MB / 419.4 MB, free: 9.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006991/0.3884, allocations: 72.94 kB / 419.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/0.3926, allocations: 1.988 MB / 421.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006882/0.3933, allocations: 1.005 MB / 422.5 MB, free: 6.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003891/0.3937, allocations: 87.59 kB / 422.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3937, allocations: 4 kB / 422.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of Templates: time 0.02613/0.4199, allocations: 19.49 MB / 442.1 MB, free: 3.016 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches