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.001345/0.001344, allocations: 103.6 kB / 18.39 MB, free: 4.641 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.001281/0.001281, allocations: 187 kB / 19.33 MB, free: 3.715 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.459/1.459, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001196/0.001196, allocations: 43.94 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08385/0.08506, allocations: 46.63 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004/0.08911, allocations: 2.717 MB / 378.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.09115, allocations: 1.192 MB / 379.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002608/0.09143, allocations: 8 kB / 379.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001647/0.09313, allocations: 0.6106 MB / 380.3 MB, free: 28 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1697/0.2629, allocations: 128.4 kB / 380.5 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.2642, allocations: 0.6747 MB / 381.1 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004364/0.2647, allocations: 291.6 kB / 381.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004378/0.2651, allocations: 277 kB / 381.7 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.2653, allocations: 133.7 kB / 381.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.2655, allocations: 166.1 kB / 382 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.205e-05/0.2655, allocations: 24.62 kB / 382 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003793/0.2659, allocations: 179.8 kB / 382.2 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.176e-05/0.266, allocations: 62.44 kB / 382.3 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.2661, allocations: 145.9 kB / 382.4 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006748/0.2668, allocations: 0.4927 MB / 382.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.2668, allocations: 0.5938 kB / 382.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2668, allocations: 1.594 kB / 382.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.2668, allocations: 0.875 kB / 382.9 MB, free: 9.523 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.001668/0.2685, allocations: 0.7135 MB / 383.6 MB, free: 9.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.2686, allocations: 9.703 kB / 383.6 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008218/0.2694, allocations: 125 kB / 383.7 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.2698, allocations: 254.8 kB / 384 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.2698, allocations: 24.03 kB / 384 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.686e-05/0.2699, allocations: 38.52 kB / 384 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005497/0.2704, allocations: 334.3 kB / 384.4 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.2704, allocations: 9.688 kB / 384.4 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.2705, allocations: 14.97 kB / 384.4 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.2705, allocations: 7.812 kB / 384.4 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00038/0.2709, allocations: 236 kB / 384.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.2726, allocations: 1.443 MB / 386.1 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005182/0.2732, allocations: 0.6993 MB / 386.8 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.2733, allocations: 105.5 kB / 386.9 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.284e-05/0.2734, allocations: 88.03 kB / 387 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.2734, allocations: 37.5 kB / 387 MB, free: 6.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.883e-06/0.2734, allocations: 0 / 387 MB, free: 6.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001126/0.2746, allocations: 0.4897 MB / 387.5 MB, free: 6.676 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.36e-05/0.2746, allocations: 53.53 kB / 387.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.2747, allocations: 177.1 kB / 387.7 MB, free: 6.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.2748, allocations: 30.77 kB / 387.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.312e-05/0.2748, allocations: 170.9 kB / 387.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.706e-05/0.2749, allocations: 87.44 kB / 388 MB, free: 6.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.798e-05/0.275, allocations: 53.72 kB / 388.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.783e-05/0.275, allocations: 327.6 kB / 388.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.2752, allocations: 66.34 kB / 388.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.2753, allocations: 138 kB / 388.6 MB, free: 5.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.2756, allocations: 211.2 kB / 388.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2756, allocations: 0 / 388.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005207/0.2761, allocations: 339.4 kB / 389.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.2761, allocations: 6.594 kB / 389.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.2761, allocations: 1.766 kB / 389.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003235/0.2765, allocations: 72.47 kB / 389.2 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.2766, allocations: 43.64 kB / 389.2 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001582/0.2782, allocations: 2.035 MB / 391.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.2784, allocations: 35.8 kB / 391.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.2784, allocations: 8.469 kB / 391.3 MB, free: 3.617 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.0001237/0.2785, allocations: 142.5 kB / 391.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.415e-05/0.2786, allocations: 23.12 kB / 391.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005199/0.2791, allocations: 289.8 kB / 391.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2791, allocations: 3.25 kB / 391.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2791, allocations: 1.156 kB / 391.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.2791, allocations: 2.156 kB / 391.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008664/0.28, allocations: 0.6811 MB / 392.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.28, allocations: 0 / 392.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.2801, allocations: 29.61 kB / 392.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00024/0.2804, allocations: 70.2 kB / 392.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.2804, allocations: 10.09 kB / 392.6 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001458/0.2819, allocations: 2.035 MB / 394.6 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2819, allocations: 0 / 394.6 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000565/0.2825, allocations: 456.3 kB / 395 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.713e-05/0.2825, allocations: 110.4 kB / 395.1 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.2826, allocations: 5.969 kB / 395.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.2827, allocations: 10.44 kB / 395.2 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.2827, allocations: 18.98 kB / 395.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.2828, allocations: 8.469 kB / 395.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.38e-05/0.2829, allocations: 126.6 kB / 395.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2829, allocations: 0 / 395.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00053/0.2834, allocations: 98 kB / 395.4 MB, free: 496 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.0002067/0.2836, allocations: 119.8 kB / 395.5 MB, free: 396 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005949/0.2842, allocations: 352 kB / 395.9 MB, free: 184 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2842, allocations: 1.719 kB / 395.9 MB, free: 184 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.2845, allocations: 247.1 kB / 396.1 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.2848, allocations: 20.91 kB / 396.1 MB, free: 0 / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.2859, allocations: 0.5894 MB / 396.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.2862, allocations: 0.7559 MB / 397.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.396e-05/0.2863, allocations: 19 kB / 397.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2863, allocations: 0 / 397.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of Templates: time 0.4884/0.7747, allocations: 3.957 MB / 401.4 MB, free: 14.48 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/jenkins1/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/jenkins1/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