Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001021/0.001021, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.408/1.408, allocations: 205.1 MB / 225 MB, free: 12.3 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.001194/0.001194, allocations: 55.92 kB / 281.3 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.09784, allocations: 46.62 MB / 328 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008132/0.106, allocations: 6.445 MB / 334.4 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004818/0.1109, allocations: 2.578 MB / 337 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006353/0.1116, allocations: 23.94 kB / 337 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002927/0.1145, allocations: 1.275 MB / 338.3 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001958/0.1165, allocations: 0.7145 MB / 339 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.1187, allocations: 1.102 MB / 340.1 MB, free: 8.262 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.12, allocations: 1.09 MB / 341.2 MB, free: 7.164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.1213, allocations: 0.9072 MB / 342.1 MB, free: 6.238 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005614/0.1219, allocations: 454.3 kB / 342.5 MB, free: 5.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000643/0.1225, allocations: 0.5484 MB / 343.1 MB, free: 5.242 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001395/0.1227, allocations: 104 kB / 343.2 MB, free: 5.141 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009207/0.1236, allocations: 403.7 kB / 343.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002049/0.1238, allocations: 247.1 kB / 343.8 MB, free: 4.504 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004978/0.1243, allocations: 0.5286 MB / 344.3 MB, free: 3.973 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001729/0.1261, allocations: 1.499 MB / 345.8 MB, free: 2.469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1261, allocations: 3.938 kB / 345.8 MB, free: 2.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1261, allocations: 0 / 345.8 MB, free: 2.465 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.1261, allocations: 0 / 345.8 MB, free: 2.465 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.004498/0.1306, allocations: 1.659 MB / 347.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.1307, allocations: 8.031 kB / 347.5 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003833/0.1345, allocations: 0.5772 MB / 348.1 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007575/0.1353, allocations: 498 kB / 348.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.867e-05/0.1354, allocations: 86.3 kB / 348.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.1356, allocations: 120 kB / 348.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001831/0.1374, allocations: 1.011 MB / 349.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.1374, allocations: 3.906 kB / 349.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.1376, allocations: 44 kB / 349.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.1376, allocations: 28 kB / 349.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001905/0.1395, allocations: 1.036 MB / 350.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00602/0.1455, allocations: 3.869 MB / 354.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002251/0.1478, allocations: 2.056 MB / 356.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000772/0.1486, allocations: 447.5 kB / 357.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.1487, allocations: 98.03 kB / 357.4 MB, free: 6.301 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000823/0.1496, allocations: 482.5 kB / 357.8 MB, free: 5.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=98): time 2.384e-06/0.1496, allocations: 0 / 357.8 MB, free: 5.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=127): time 0.009128/0.1587, allocations: 4.026 MB / 361.9 MB, free: 1.664 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.448e-05/0.1588, allocations: 145.5 kB / 362 MB, free: 1.492 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000473/0.1593, allocations: 413.8 kB / 362.4 MB, free: 1.078 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.405e-05/0.1594, allocations: 49.7 kB / 362.5 MB, free: 1.023 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.1597, allocations: 443.5 kB / 362.9 MB, free: 0.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003063/0.16, allocations: 429.7 kB / 363.3 MB, free: 160 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003128/0.1603, allocations: 218.7 kB / 363.5 MB, free: 15.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.1605, allocations: 386.7 kB / 363.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006996/0.1612, allocations: 362.5 kB / 364.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000895/0.1621, allocations: 0.5876 MB / 364.8 MB, free: 14.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001645/0.1638, allocations: 1.001 MB / 365.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.1638, allocations: 0 / 365.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.00278/0.1666, allocations: 1.44 MB / 367.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.1666, allocations: 4 kB / 367.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.1667, allocations: 8 kB / 367.3 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.1677, allocations: 355.1 kB / 367.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009573/0.1686, allocations: 223.6 kB / 367.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008292/0.177, allocations: 8.488 MB / 376.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007898/0.1778, allocations: 52.05 kB / 376.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.1779, allocations: 44 kB / 376.4 MB, free: 2.258 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004634/0.1784, allocations: 273.5 kB / 376.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.1785, allocations: 71.16 kB / 376.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002598/0.1811, allocations: 1.325 MB / 378.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.1812, allocations: 12 kB / 378.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.986e-05/0.1812, allocations: 11.94 kB / 378.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.1812, allocations: 7.969 kB / 378.1 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1706/0.3518, allocations: 2.556 MB / 380.7 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.3519, allocations: 3.984 kB / 380.7 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008092/0.3527, allocations: 157.4 kB / 380.8 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008555/0.3536, allocations: 330.7 kB / 381.2 MB, free: 51.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.811e-05/0.3537, allocations: 30.73 kB / 381.2 MB, free: 51.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006502/0.3602, allocations: 8.115 MB / 389.3 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.3602, allocations: 6.531 kB / 389.3 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003473/0.3637, allocations: 1.837 MB / 391.2 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004021/0.3641, allocations: 221 kB / 391.4 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.3642, allocations: 28.58 kB / 391.4 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005296/0.3647, allocations: 39.19 kB / 391.4 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/0.365, allocations: 104.3 kB / 391.5 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.319e-05/0.3651, allocations: 36.52 kB / 391.6 MB, free: 43.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003985/0.3655, allocations: 275.4 kB / 391.8 MB, free: 43.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3655, allocations: 3.438 kB / 391.8 MB, free: 43.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002114/0.3676, allocations: 325.7 kB / 392.2 MB, free: 43.62 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004167/0.368, allocations: 162.3 kB / 392.3 MB, free: 43.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003901/0.3719, allocations: 1.689 MB / 394 MB, free: 42.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.372, allocations: 1.188 kB / 394 MB, free: 42.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.3737, allocations: 1.148 MB / 395.2 MB, free: 41.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006081/0.3743, allocations: 80.5 kB / 395.2 MB, free: 41.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004145/0.3784, allocations: 2.037 MB / 397.3 MB, free: 40.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007241/0.3792, allocations: 1.026 MB / 398.3 MB, free: 40.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.3794, allocations: 68.88 kB / 398.4 MB, free: 40.04 MB / 318.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3795, allocations: 0 / 398.4 MB, free: 40.04 MB / 318.1 MB Notification: Performance of Templates: time 0.02478/0.4042, allocations: 26.73 MB / 425.1 MB, free: 18.09 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches