Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001207/0.001208, allocations: 184.2 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 60.33 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08424/0.08548, allocations: 46.62 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004687/0.0902, allocations: 2.72 MB / 377.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.09254, allocations: 1.196 MB / 379.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003087/0.09288, allocations: 8 kB / 379.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001873/0.09481, allocations: 0.6184 MB / 379.7 MB, free: 8 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1657/0.2605, allocations: 121.2 kB / 379.8 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.262, allocations: 0.6734 MB / 380.5 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004243/0.2625, allocations: 292.6 kB / 380.8 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005166/0.263, allocations: 277.2 kB / 381 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002385/0.2633, allocations: 126.3 kB / 381.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.2635, allocations: 170.9 kB / 381.3 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.544e-05/0.2635, allocations: 26.09 kB / 381.3 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004428/0.264, allocations: 173.3 kB / 381.5 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.469e-05/0.2641, allocations: 64.53 kB / 381.6 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001865/0.2643, allocations: 145.3 kB / 381.7 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006269/0.2649, allocations: 0.4957 MB / 382.2 MB, free: 9.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2649, allocations: 0 / 382.2 MB, free: 9.527 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2649, allocations: 0.5 kB / 382.2 MB, free: 9.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.2649, allocations: 0 / 382.2 MB, free: 9.527 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001506/0.2664, allocations: 0.7159 MB / 382.9 MB, free: 9.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2665, allocations: 10.25 kB / 382.9 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007982/0.2673, allocations: 122.9 kB / 383.1 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.2676, allocations: 254 kB / 383.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.2676, allocations: 25.62 kB / 383.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.494e-05/0.2677, allocations: 37.58 kB / 383.4 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004794/0.2682, allocations: 337.8 kB / 383.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.2682, allocations: 8.281 kB / 383.7 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.2682, allocations: 14.28 kB / 383.7 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.2683, allocations: 12.91 kB / 383.7 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000372/0.2686, allocations: 235.2 kB / 384 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.2703, allocations: 1.436 MB / 385.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004903/0.2708, allocations: 0.7056 MB / 386.1 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.2709, allocations: 100.4 kB / 386.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.683e-05/0.271, allocations: 88.86 kB / 386.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.354e-05/0.271, allocations: 41.67 kB / 386.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.271, allocations: 0 / 386.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001085/0.2721, allocations: 0.4924 MB / 386.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.005e-05/0.2722, allocations: 54.94 kB / 386.9 MB, free: 6.602 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.2723, allocations: 172.9 kB / 387 MB, free: 6.473 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.2723, allocations: 27.17 kB / 387.1 MB, free: 6.441 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.196e-05/0.2724, allocations: 176.3 kB / 387.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.255e-05/0.2724, allocations: 84.44 kB / 387.3 MB, free: 6.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.428e-05/0.2725, allocations: 54.39 kB / 387.4 MB, free: 6.191 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.272e-05/0.2726, allocations: 328.2 kB / 387.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.2727, allocations: 70.48 kB / 387.8 MB, free: 5.844 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.2728, allocations: 130.7 kB / 387.9 MB, free: 5.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002375/0.2731, allocations: 210.8 kB / 388.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.2731, allocations: 0.9688 kB / 388.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005006/0.2736, allocations: 335.6 kB / 388.4 MB, free: 5.465 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.2736, allocations: 5.844 kB / 388.4 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.2736, allocations: 3.203 kB / 388.4 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002962/0.2739, allocations: 79.42 kB / 388.5 MB, free: 5.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.2741, allocations: 42.86 kB / 388.6 MB, free: 5.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/0.2756, allocations: 2.036 MB / 390.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.2757, allocations: 26.38 kB / 390.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.2758, allocations: 15.22 kB / 390.6 MB, free: 3.609 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.2759, allocations: 152.9 kB / 390.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.138e-05/0.2759, allocations: 16.75 kB / 390.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005156/0.2764, allocations: 288.2 kB / 391.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2765, allocations: 2.062 kB / 391.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2765, allocations: 2.75 kB / 391.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.2765, allocations: 1.406 kB / 391.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008536/0.2773, allocations: 0.6827 MB / 391.8 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2774, allocations: 1.266 kB / 391.8 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.2775, allocations: 22.47 kB / 391.8 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002295/0.2777, allocations: 81.23 kB / 391.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.2777, allocations: 6.875 kB / 391.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.2792, allocations: 2.035 MB / 393.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2792, allocations: 1.031 kB / 393.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005602/0.2798, allocations: 456.4 kB / 394.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.578e-05/0.2799, allocations: 110.1 kB / 394.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.2799, allocations: 6.188 kB / 394.5 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.28, allocations: 5.312 kB / 394.5 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.2801, allocations: 21.08 kB / 394.5 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.2801, allocations: 9.094 kB / 394.5 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.71e-05/0.2802, allocations: 120.7 kB / 394.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2802, allocations: 0 / 394.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004786/0.2807, allocations: 103.4 kB / 394.7 MB, free: 472 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001658/0.2808, allocations: 113.4 kB / 394.8 MB, free: 380 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005293/0.2814, allocations: 357.1 kB / 395.2 MB, free: 164 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.331e-06/0.2814, allocations: 0 / 395.2 MB, free: 164 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003015/0.2817, allocations: 248.1 kB / 395.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.282, allocations: 17.92 kB / 395.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009591/0.283, allocations: 0.5718 MB / 396 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.2833, allocations: 0.752 MB / 396.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.857e-05/0.2834, allocations: 24.78 kB / 396.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.631e-05/0.2834, allocations: 16.16 kB / 396.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2834, allocations: 0 / 396.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of Templates: time 0.005917/0.2893, allocations: 2.575 MB / 399.4 MB, free: 14.67 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches