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.001399/0.001399, allocations: 108.4 kB / 18.36 MB, free: 4.77 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.001258/0.001259, allocations: 191 kB / 19.29 MB, free: 3.848 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.349/1.349, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001376/0.001376, allocations: 51.94 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.1008, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008695/0.1095, allocations: 6.448 MB / 335.2 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005561/0.1151, allocations: 2.586 MB / 337.8 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008738/0.116, allocations: 19.94 kB / 337.8 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003307/0.1194, allocations: 1.268 MB / 339.1 MB, free: 9.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0023/0.1217, allocations: 0.7107 MB / 339.8 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002448/0.1241, allocations: 1.117 MB / 340.9 MB, free: 7.547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001949/0.1261, allocations: 1.094 MB / 342 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001509/0.1276, allocations: 0.9069 MB / 342.9 MB, free: 5.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006586/0.1283, allocations: 450.3 kB / 343.3 MB, free: 5.078 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006144/0.1289, allocations: 0.5562 MB / 343.9 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.1291, allocations: 100 kB / 344 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008517/0.1299, allocations: 403.7 kB / 344.4 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.1301, allocations: 247.1 kB / 344.6 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004369/0.1306, allocations: 0.5247 MB / 345.1 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001499/0.1321, allocations: 1.518 MB / 346.7 MB, free: 1.734 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1321, allocations: 0 / 346.7 MB, free: 1.734 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1321, allocations: 3.984 kB / 346.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.1321, allocations: 0 / 346.7 MB, free: 1.73 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.004111/0.1362, allocations: 1.655 MB / 348.3 MB, free: 24 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.1363, allocations: 8.031 kB / 348.3 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003903/0.1402, allocations: 0.5696 MB / 348.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006902/0.1409, allocations: 0.498 MB / 349.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.059e-05/0.141, allocations: 86.3 kB / 349.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.1412, allocations: 112 kB / 349.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.143, allocations: 1.014 MB / 350.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.309e-05/0.143, allocations: 3.906 kB / 350.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.482e-05/0.1431, allocations: 48 kB / 350.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.1432, allocations: 24 kB / 350.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001915/0.1451, allocations: 1.036 MB / 351.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005667/0.1508, allocations: 3.838 MB / 355.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002192/0.153, allocations: 2.048 MB / 357.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007576/0.1537, allocations: 451.5 kB / 358 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/0.1539, allocations: 102.1 kB / 358.1 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008209/0.1547, allocations: 490.3 kB / 358.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=98): time 3.076e-06/0.1547, allocations: 4 kB / 358.6 MB, free: 5.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=127): time 0.008794/0.1635, allocations: 4.01 MB / 362.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/0.1636, allocations: 149.5 kB / 362.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.1641, allocations: 417.8 kB / 363.2 MB, free: 380 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.08e-05/0.1641, allocations: 45.7 kB / 363.2 MB, free: 328 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.1644, allocations: 435.5 kB / 363.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002745/0.1647, allocations: 429.7 kB / 364.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003005/0.165, allocations: 218.8 kB / 364.3 MB, free: 15.24 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1652, allocations: 378.7 kB / 364.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006953/0.1659, allocations: 366.5 kB / 365 MB, free: 14.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008431/0.1668, allocations: 0.5954 MB / 365.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.1684, allocations: 0.9969 MB / 366.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1684, allocations: 4 kB / 366.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002595/0.171, allocations: 1.433 MB / 368 MB, free: 11.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.171, allocations: 8 kB / 368 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.1711, allocations: 4 kB / 368.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000882/0.1719, allocations: 355 kB / 368.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008739/0.1728, allocations: 215.7 kB / 368.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007977/0.1808, allocations: 8.492 MB / 377.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007307/0.1816, allocations: 48.05 kB / 377.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.189e-05/0.1817, allocations: 51.98 kB / 377.2 MB, free: 1.566 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.0004943/0.1822, allocations: 257.6 kB / 377.5 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.1823, allocations: 71.16 kB / 377.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1653/0.3475, allocations: 1.325 MB / 378.8 MB, free: 51.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.215e-05/0.3476, allocations: 15.91 kB / 378.9 MB, free: 51.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.9e-05/0.3476, allocations: 7.625 kB / 378.9 MB, free: 51.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.741e-05/0.3477, allocations: 6.844 kB / 378.9 MB, free: 51.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004598/0.3523, allocations: 2.556 MB / 381.4 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.3523, allocations: 1.156 kB / 381.4 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007188/0.353, allocations: 160 kB / 381.6 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007676/0.3538, allocations: 323.1 kB / 381.9 MB, free: 51.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.184e-05/0.3539, allocations: 29.36 kB / 381.9 MB, free: 51.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005988/0.3599, allocations: 8.113 MB / 390 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3599, allocations: 2 kB / 390 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003048/0.363, allocations: 1.84 MB / 391.9 MB, free: 43.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002932/0.3633, allocations: 224.1 kB / 392.1 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.293e-05/0.3634, allocations: 29.06 kB / 392.1 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005018/0.3639, allocations: 42.25 kB / 392.2 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/0.3641, allocations: 99.53 kB / 392.3 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.654e-05/0.3642, allocations: 35.42 kB / 392.3 MB, free: 43.42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003043/0.3645, allocations: 279.3 kB / 392.6 MB, free: 43.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3645, allocations: 2.203 kB / 392.6 MB, free: 43.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001118/0.3656, allocations: 325.2 kB / 392.9 MB, free: 43.22 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.0002344/0.3659, allocations: 168.4 kB / 393.1 MB, free: 43.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.3683, allocations: 1.652 MB / 394.7 MB, free: 42.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3683, allocations: 0.5625 kB / 394.7 MB, free: 42.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.3697, allocations: 1.147 MB / 395.9 MB, free: 41.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005022/0.3702, allocations: 74.84 kB / 395.9 MB, free: 41.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003158/0.3734, allocations: 1.979 MB / 397.9 MB, free: 40.44 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005356/0.374, allocations: 1.032 MB / 398.9 MB, free: 39.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003882/0.3744, allocations: 105.1 kB / 399.1 MB, free: 39.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.3745, allocations: 58.81 kB / 399.1 MB, free: 39.67 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3745, allocations: 0 / 399.1 MB, free: 39.67 MB / 318.1 MB Notification: Performance of Templates: time 0.01492/0.3895, allocations: 11 MB / 410.1 MB, free: 33.22 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 -s cvode -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