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.001329/0.001329, allocations: 109.4 kB / 18.4 MB, free: 4.695 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.001411/0.001411, allocations: 193.2 kB / 19.33 MB, free: 3.773 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.416/1.416, allocations: 205.1 MB / 225.2 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.001321/0.001321, allocations: 59.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08292/0.08425, allocations: 46.61 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003847/0.08814, allocations: 2.713 MB / 378.5 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.09018, allocations: 1.2 MB / 379.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002477/0.09047, allocations: 8 kB / 379.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.09204, allocations: 0.6184 MB / 380.4 MB, free: 20 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1701/0.2622, allocations: 120 kB / 380.5 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001378/0.2636, allocations: 0.6763 MB / 381.1 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003961/0.264, allocations: 291.6 kB / 381.4 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004242/0.2644, allocations: 278.4 kB / 381.7 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.2646, allocations: 130 kB / 381.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.2648, allocations: 166.9 kB / 382 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.79e-05/0.2649, allocations: 25.38 kB / 382 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003638/0.2652, allocations: 177.3 kB / 382.2 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.685e-05/0.2653, allocations: 61.31 kB / 382.3 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.2654, allocations: 148.7 kB / 382.4 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006911/0.2661, allocations: 0.493 MB / 382.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2662, allocations: 0.5 kB / 382.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.2662, allocations: 2.188 kB / 382.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.2662, allocations: 0 / 382.9 MB, free: 9.539 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.001619/0.2678, allocations: 0.713 MB / 383.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2679, allocations: 10.62 kB / 383.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008016/0.2687, allocations: 121.5 kB / 383.7 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003396/0.269, allocations: 264.6 kB / 384 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.269, allocations: 23.31 kB / 384 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.451e-05/0.2691, allocations: 35.11 kB / 384 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004981/0.2696, allocations: 333.2 kB / 384.4 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.2696, allocations: 5.094 kB / 384.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.2697, allocations: 16.12 kB / 384.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.2697, allocations: 8.469 kB / 384.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003897/0.2701, allocations: 240.8 kB / 384.6 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.2718, allocations: 1.437 MB / 386.1 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.2723, allocations: 0.7014 MB / 386.8 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.2725, allocations: 108.8 kB / 386.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.7e-05/0.2726, allocations: 85.78 kB / 387 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.821e-05/0.2726, allocations: 39.62 kB / 387 MB, free: 6.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.2726, allocations: 0 / 387 MB, free: 6.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.00111/0.2737, allocations: 496.5 kB / 387.5 MB, free: 6.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.395e-05/0.2737, allocations: 62.69 kB / 387.6 MB, free: 6.617 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.2739, allocations: 168.5 kB / 387.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.2739, allocations: 30.83 kB / 387.7 MB, free: 6.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.603e-05/0.274, allocations: 174.9 kB / 387.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.035e-05/0.274, allocations: 87.38 kB / 388 MB, free: 6.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.318e-05/0.2741, allocations: 49.27 kB / 388 MB, free: 6.211 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.265e-05/0.2742, allocations: 328.1 kB / 388.4 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.2743, allocations: 71.53 kB / 388.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.2744, allocations: 127.7 kB / 388.6 MB, free: 5.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002399/0.2747, allocations: 215.1 kB / 388.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2747, allocations: 0 / 388.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005269/0.2752, allocations: 337.7 kB / 389.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.2753, allocations: 5.781 kB / 389.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2753, allocations: 2.875 kB / 389.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002883/0.2756, allocations: 75.34 kB / 389.2 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.2757, allocations: 42.52 kB / 389.2 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.2773, allocations: 2.041 MB / 391.3 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.2774, allocations: 30.38 kB / 391.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.2775, allocations: 12.19 kB / 391.3 MB, free: 3.625 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.0001127/0.2776, allocations: 140.5 kB / 391.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.199e-05/0.2776, allocations: 16.91 kB / 391.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005068/0.2782, allocations: 290.1 kB / 391.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2782, allocations: 2 kB / 391.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.2782, allocations: 4.141 kB / 391.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.2782, allocations: 0.6094 kB / 391.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008768/0.2791, allocations: 0.6873 MB / 392.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.2791, allocations: 0.6562 kB / 392.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.2792, allocations: 26.91 kB / 392.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002177/0.2794, allocations: 72.19 kB / 392.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.2795, allocations: 11.2 kB / 392.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.2809, allocations: 2.033 MB / 394.6 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.281, allocations: 0 / 394.6 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005865/0.2815, allocations: 459.6 kB / 395 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.567e-05/0.2816, allocations: 110.6 kB / 395.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.2817, allocations: 9.984 kB / 395.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.2818, allocations: 2.062 kB / 395.2 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.2818, allocations: 19.36 kB / 395.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.2818, allocations: 5.516 kB / 395.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.159e-05/0.2819, allocations: 125.3 kB / 395.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2819, allocations: 0 / 395.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005209/0.2825, allocations: 103 kB / 395.4 MB, free: 492 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.0002052/0.2827, allocations: 122 kB / 395.5 MB, free: 392 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005833/0.2833, allocations: 349.7 kB / 395.9 MB, free: 184 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2833, allocations: 4.062 kB / 395.9 MB, free: 180 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002886/0.2836, allocations: 247.4 kB / 396.1 MB, free: 8 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.2839, allocations: 20.25 kB / 396.1 MB, free: 0 / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.285, allocations: 0.5952 MB / 396.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.2854, allocations: 0.7557 MB / 397.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.197e-05/0.2854, allocations: 19.08 kB / 397.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2854, allocations: 0 / 397.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of Templates: time 0.006778/0.2922, allocations: 3.993 MB / 401.5 MB, free: 14.46 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