Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00139/0.00139, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00148/0.00148, allocations: 204.9 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 230.5 MB / 257.4 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 67.89 kB / 378.2 MB, free: 2.301 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2386, allocations: 53.41 MB / 431.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008156/0.2467, allocations: 5.846 MB / 437.5 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004353/0.2511, allocations: 2.464 MB / 439.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003245/0.2514, allocations: 19.94 kB / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002885/0.2543, allocations: 1.2 MB / 441.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001178/0.2555, allocations: 0.5162 MB / 441.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002384/0.2578, allocations: 1.191 MB / 442.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.259, allocations: 1.079 MB / 444 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.2602, allocations: 0.7624 MB / 444.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005363/0.2607, allocations: 454.3 kB / 445.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006487/0.2614, allocations: 497.6 kB / 445.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001396/0.2615, allocations: 100 kB / 445.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007297/0.2622, allocations: 395.6 kB / 446.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002087/0.2624, allocations: 235.1 kB / 446.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004225/0.2629, allocations: 438 kB / 446.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001732/0.2646, allocations: 1.532 MB / 448.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2646, allocations: 0 / 448.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2646, allocations: 0 / 448.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.2646, allocations: 0 / 448.3 MB, free: 5.758 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004288/0.2689, allocations: 1.696 MB / 450 MB, free: 4.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2689, allocations: 12.03 kB / 450 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003264/0.2722, allocations: 471.8 kB / 450.5 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007766/0.273, allocations: 449.2 kB / 450.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.395e-05/0.2731, allocations: 86.22 kB / 451 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.2732, allocations: 116 kB / 451.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/0.2752, allocations: 1.021 MB / 452.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.34e-05/0.2753, allocations: 0 / 452.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.2754, allocations: 44 kB / 452.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/0.2754, allocations: 24 kB / 452.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002094/0.2775, allocations: 0.9651 MB / 453.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005864/0.2833, allocations: 2.945 MB / 456.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.2851, allocations: 0.8134 MB / 456.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008161/0.2859, allocations: 395 kB / 457.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.286, allocations: 32.97 kB / 457.3 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009601/0.287, allocations: 0.5097 MB / 457.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.006e-06/0.287, allocations: 0 / 457.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.009612/0.2966, allocations: 3.696 MB / 461.6 MB, free: 8.191 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.2968, allocations: 145.5 kB / 461.7 MB, free: 8.016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005834/0.2973, allocations: 393.4 kB / 462.1 MB, free: 7.625 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.442e-05/0.2974, allocations: 45.7 kB / 462.1 MB, free: 7.574 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004512/0.2979, allocations: 441 kB / 462.6 MB, free: 7.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004574/0.2984, allocations: 444.1 kB / 463 MB, free: 6.699 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003589/0.2987, allocations: 210.8 kB / 463.2 MB, free: 6.488 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000247/0.299, allocations: 374.8 kB / 463.6 MB, free: 6.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007923/0.2997, allocations: 346.5 kB / 463.9 MB, free: 5.773 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.3008, allocations: 0.5892 MB / 464.5 MB, free: 5.109 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/0.3025, allocations: 0.9304 MB / 465.4 MB, free: 4.125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3025, allocations: 0 / 465.4 MB, free: 4.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002822/0.3054, allocations: 1.359 MB / 466.8 MB, free: 2.746 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.3054, allocations: 19.86 kB / 466.8 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.3054, allocations: 4 kB / 466.8 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009462/0.3063, allocations: 343.2 kB / 467.1 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008926/0.3072, allocations: 207.7 kB / 467.3 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009189/0.3164, allocations: 7.881 MB / 475.2 MB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007732/0.3172, allocations: 48.05 kB / 475.3 MB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.332e-05/0.3173, allocations: 44.11 kB / 475.3 MB, free: 9.809 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * 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.0004887/0.3178, allocations: 257.8 kB / 475.6 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.3179, allocations: 71.56 kB / 475.6 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002823/0.3207, allocations: 1.293 MB / 476.9 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-05/0.3207, allocations: 15.94 kB / 476.9 MB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.3208, allocations: 8 kB / 476.9 MB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.3208, allocations: 7.969 kB / 477 MB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/0.3252, allocations: 2.213 MB / 479.2 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.483e-06/0.3252, allocations: 0 / 479.2 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007332/0.3259, allocations: 147.8 kB / 479.3 MB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008634/0.3268, allocations: 326 kB / 479.6 MB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.822e-05/0.3269, allocations: 32 kB / 479.7 MB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008222/0.3351, allocations: 7.529 MB / 487.2 MB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.3351, allocations: 4 kB / 487.2 MB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003584/0.3387, allocations: 1.81 MB / 489 MB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003727/0.3391, allocations: 147.5 kB / 489.1 MB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.3392, allocations: 24 kB / 489.2 MB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005451/0.3397, allocations: 35.98 kB / 489.2 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.3399, allocations: 104.7 kB / 489.3 MB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.657e-05/0.34, allocations: 39.92 kB / 489.3 MB, free: 11.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003157/0.3403, allocations: 259.2 kB / 489.6 MB, free: 10.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3403, allocations: 4 kB / 489.6 MB, free: 10.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00123/0.3415, allocations: 319.9 kB / 489.9 MB, free: 10.64 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (rootMeanSquare.mean.x,coil.i,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * 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.0003249/0.3419, allocations: 175 kB / 490.1 MB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003013/0.3449, allocations: 1.552 MB / 491.6 MB, free: 8.855 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.3449, allocations: 4 kB / 491.6 MB, free: 8.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00188/0.3468, allocations: 1.1 MB / 492.7 MB, free: 7.703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.3473, allocations: 69.42 kB / 492.8 MB, free: 7.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003928/0.3513, allocations: 1.942 MB / 494.8 MB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005284/0.3518, allocations: 432 kB / 495.2 MB, free: 5.203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004231/0.3522, allocations: 98.02 kB / 495.3 MB, free: 5.105 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.3524, allocations: 59.41 kB / 495.3 MB, free: 5.047 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3524, allocations: 4 kB / 495.3 MB, free: 5.043 MB / 398.1 MB Notification: Performance of Templates: time 0.02363/0.376, allocations: 12.26 MB / 0.4957 GB, free: 8.848 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.013541221618652]