Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001447/0.001447, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.9 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 58.59 kB / 306.9 MB, free: 1.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09293/0.09427, allocations: 50.54 MB / 357.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008088/0.1024, allocations: 6.648 MB / 364.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00443/0.1069, allocations: 2.448 MB / 366.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008492/0.1078, allocations: 24 kB / 366.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003875/0.1117, allocations: 1.766 MB / 368.3 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001702/0.1134, allocations: 493.4 kB / 368.8 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002617/0.1161, allocations: 1.289 MB / 370.1 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001489/0.1176, allocations: 1.058 MB / 371.2 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1734/0.2909, allocations: 0.8594 MB / 372 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.292, allocations: 455.8 kB / 372.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007053/0.2927, allocations: 0.6044 MB / 373.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001537/0.2929, allocations: 75.44 kB / 373.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.2941, allocations: 420.5 kB / 373.6 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.2943, allocations: 220.4 kB / 373.8 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005885/0.2949, allocations: 0.5388 MB / 374.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001811/0.2967, allocations: 1.272 MB / 375.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.2967, allocations: 0 / 375.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2968, allocations: 1.812 kB / 375.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.572e-05/0.2968, allocations: 0 / 375.6 MB, free: 8.848 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.006655/0.3034, allocations: 2.029 MB / 377.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3035, allocations: 8.938 kB / 377.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00358/0.3071, allocations: 0.5077 MB / 378.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.3074, allocations: 311.1 kB / 378.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.544e-05/0.3075, allocations: 98.77 kB / 378.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002532/0.3078, allocations: 128.7 kB / 378.7 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002483/0.3103, allocations: 1.294 MB / 380 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.848e-05/0.3103, allocations: 13.7 kB / 380 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.3104, allocations: 52.59 kB / 380 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.3105, allocations: 31.52 kB / 380.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002392/0.3129, allocations: 1.191 MB / 381.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006571/0.3195, allocations: 4.299 MB / 385.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002199/0.3217, allocations: 2.447 MB / 388 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009266/0.3226, allocations: 0.5062 MB / 388.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001799/0.3228, allocations: 190.6 kB / 388.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.3229, allocations: 45.94 kB / 388.7 MB, free: 2.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 2.955e-06/0.3229, allocations: 4 kB / 388.7 MB, free: 2.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.009995/0.3329, allocations: 3.752 MB / 392.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.3329, allocations: 90.48 kB / 392.6 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004256/0.3334, allocations: 395.4 kB / 393 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.45e-05/0.3334, allocations: 46.77 kB / 393 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.3336, allocations: 454.8 kB / 393.4 MB, free: 252 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002919/0.3339, allocations: 431.7 kB / 393.9 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003331/0.3343, allocations: 223.6 kB / 394.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.3344, allocations: 373.9 kB / 394.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009703/0.3354, allocations: 432.9 kB / 394.9 MB, free: 15.19 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.3367, allocations: 0.6913 MB / 395.6 MB, free: 14.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002246/0.3389, allocations: 1.181 MB / 396.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.3389, allocations: 3.625 kB / 396.8 MB, free: 13.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002876/0.3418, allocations: 1.468 MB / 398.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.3419, allocations: 15.59 kB / 398.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.3419, allocations: 7.344 kB / 398.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005542/0.3424, allocations: 192.3 kB / 398.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.3436, allocations: 286.9 kB / 398.7 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004027/0.3476, allocations: 3.964 MB / 402.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009915/0.3486, allocations: 80.81 kB / 402.8 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-05/0.3487, allocations: 52.42 kB / 402.8 MB, free: 9.488 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.0005313/0.3493, allocations: 281.4 kB / 403.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.3494, allocations: 65.78 kB / 403.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002785/0.3522, allocations: 1.338 MB / 404.5 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.3522, allocations: 13 kB / 404.5 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3522, allocations: 7.484 kB / 404.5 MB, free: 8.492 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.3523, allocations: 15.84 kB / 404.5 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00484/0.3571, allocations: 2.606 MB / 407.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.3571, allocations: 4 kB / 407.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009482/0.3581, allocations: 222.4 kB / 407.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004666/0.3586, allocations: 164.2 kB / 407.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.208e-05/0.3587, allocations: 27.98 kB / 407.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003863/0.3625, allocations: 3.771 MB / 411.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.3625, allocations: 10.83 kB / 411.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003908/0.3665, allocations: 1.858 MB / 413.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004644/0.3669, allocations: 224.2 kB / 413.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.3671, allocations: 24.06 kB / 413.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007223/0.3678, allocations: 59.95 kB / 413.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.3681, allocations: 92.52 kB / 413.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.158e-05/0.3681, allocations: 37.44 kB / 413.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003555/0.3685, allocations: 267.2 kB / 413.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3685, allocations: 4 kB / 413.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001369/0.3699, allocations: 308 kB / 414.2 MB, free: 14.71 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.0003686/0.3703, allocations: 170.6 kB / 414.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003063/0.3733, allocations: 1.454 MB / 415.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3734, allocations: 0 / 415.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001488/0.3749, allocations: 0.8711 MB / 416.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006938/0.3756, allocations: 67.8 kB / 416.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004747/0.3803, allocations: 2.476 MB / 419.2 MB, free: 9.652 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006975/0.381, allocations: 1.009 MB / 420.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003843/0.3814, allocations: 83.41 kB / 420.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3814, allocations: 0 / 420.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of Templates: time 0.0257/0.4071, allocations: 19.48 MB / 439.8 MB, free: 5.09 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches