Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 187.5 kB / 24.46 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 225.7 MB / 253.3 MB, free: 12.88 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5545,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5545,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 51.89 kB / 371.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2366, allocations: 52.17 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01252/0.2491, allocations: 9.608 MB / 433.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007352/0.2565, allocations: 3.592 MB / 437 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001959/0.2585, allocations: 47.75 kB / 437.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008484/0.2669, allocations: 8.132 MB / 445.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006914/0.2739, allocations: 4.648 MB / 449.8 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002582/0.2764, allocations: 0.9631 MB / 450.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00702/0.2835, allocations: 5.315 MB / 456.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/0.2847, allocations: 0.5434 MB / 456.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004433/0.2891, allocations: 2.892 MB / 459.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007203/0.2963, allocations: 5.629 MB / 465.2 MB, free: 4.988 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001014/0.2974, allocations: 348 kB / 465.5 MB, free: 4.648 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.2984, allocations: 395.9 kB / 465.9 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00153/0.2999, allocations: 1.869 MB / 467.8 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002378/0.3023, allocations: 2.035 MB / 469.8 MB, free: 336 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007946/0.3103, allocations: 7.392 MB / 477.2 MB, free: 8.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.3103, allocations: 0 / 477.2 MB, free: 8.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3103, allocations: 0 / 477.2 MB, free: 8.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001964/0.3105, allocations: 0 / 477.2 MB, free: 8.902 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01392/0.3244, allocations: 7.858 MB / 485.1 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3244, allocations: 16.03 kB / 485.1 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001217/0.3257, allocations: 0.8895 MB / 486 MB, free: 44 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00507/0.3307, allocations: 3.158 MB / 489.1 MB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001581/0.3309, allocations: 160.5 kB / 489.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000394/0.3313, allocations: 212.1 kB / 489.5 MB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004376/0.3357, allocations: 2.245 MB / 491.7 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.953e-05/0.3357, allocations: 0 / 491.7 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/0.3359, allocations: 87.94 kB / 491.8 MB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.2e-05/0.3359, allocations: 48 kB / 491.9 MB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004135/0.3401, allocations: 1.903 MB / 493.8 MB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01541/0.3555, allocations: 7.512 MB / 0.4895 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004247/0.3597, allocations: 2.031 MB / 0.4915 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00302/0.3628, allocations: 1.303 MB / 0.4928 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001277/0.3629, allocations: 34.3 kB / 0.4928 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002381/0.3653, allocations: 1.289 MB / 0.4941 GB, free: 11.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=242): time 5.45e-06/0.3653, allocations: 0 / 0.4941 GB, free: 11.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=367): time 0.0711/0.4364, allocations: 22.56 MB / 0.5161 GB, free: 4.973 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03219/0.4686, allocations: 13.05 MB / 0.5289 GB, free: 7.617 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2078/0.6764, allocations: 14.9 MB / 0.5434 GB, free: 100.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005038/0.6769, allocations: 90.42 kB / 0.5435 GB, free: 100.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002617/0.6795, allocations: 3.514 MB / 0.5469 GB, free: 98.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00103/0.6805, allocations: 1.275 MB / 0.5482 GB, free: 98.09 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000811/0.6814, allocations: 0.5175 MB / 0.5487 GB, free: 97.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.112e-05/0.6814, allocations: 301.1 kB / 0.549 GB, free: 97.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00225/0.6836, allocations: 1.255 MB / 0.5502 GB, free: 97.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002401/0.686, allocations: 1.752 MB / 0.5519 GB, free: 96.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004576/0.6906, allocations: 3.004 MB / 0.5548 GB, free: 94.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.6906, allocations: 4.531 kB / 0.5548 GB, free: 94.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009738/0.7004, allocations: 5.209 MB / 0.5599 GB, free: 90.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.7004, allocations: 8 kB / 0.5599 GB, free: 90.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.7004, allocations: 4 kB / 0.5599 GB, free: 90.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004846/0.7053, allocations: 1.385 MB / 0.5613 GB, free: 89.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00263/0.7079, allocations: 0.5313 MB / 0.5618 GB, free: 89.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02261/0.7305, allocations: 22.46 MB / 0.5838 GB, free: 66.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003221/0.7337, allocations: 130.4 kB / 0.5839 GB, free: 66.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004004/0.7341, allocations: 116 kB / 0.584 GB, free: 66.19 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (309): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,4,100.0%), (1,3,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.002614/0.7367, allocations: 2.19 MB / 0.5861 GB, free: 64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008884/0.7376, allocations: 0.8537 MB / 0.587 GB, free: 63.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009994/0.7476, allocations: 5.269 MB / 0.5921 GB, free: 57.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.322e-05/0.7476, allocations: 36 kB / 0.5921 GB, free: 57.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.611e-05/0.7477, allocations: 8 kB / 0.5921 GB, free: 57.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-05/0.7477, allocations: 19.88 kB / 0.5922 GB, free: 57.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01691/0.7646, allocations: 9.87 MB / 0.6018 GB, free: 47.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.52e-05/0.7646, allocations: 0 / 0.6018 GB, free: 47.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002348/0.767, allocations: 467.5 kB / 0.6023 GB, free: 47.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004966/0.7719, allocations: 1.33 MB / 0.6036 GB, free: 46.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003624/0.7723, allocations: 75.97 kB / 0.6036 GB, free: 46.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01983/0.7921, allocations: 20.39 MB / 0.6235 GB, free: 24.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02163/0.8137, allocations: 11.37 MB / 0.6346 GB, free: 13.17 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01219/0.8259, allocations: 6.971 MB / 0.6414 GB, free: 6.098 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/0.8272, allocations: 0.7232 MB / 0.6421 GB, free: 5.371 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006573/0.8279, allocations: 64 kB / 0.6422 GB, free: 5.309 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/0.83, allocations: 115.9 kB / 0.6423 GB, free: 5.195 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005731/0.8305, allocations: 283.2 kB / 0.6426 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001744/0.8307, allocations: 95.97 kB / 0.6427 GB, free: 4.828 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01198/0.8427, allocations: 11.12 MB / 0.6535 GB, free: 9.828 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8427, allocations: 0 / 0.6535 GB, free: 9.828 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004719/0.8474, allocations: 1.081 MB / 0.6546 GB, free: 8.75 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (256): * Single equations (assignments): 245 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002147/0.8496, allocations: 0.5243 MB / 0.6551 GB, free: 8.414 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00981/0.8594, allocations: 4.648 MB / 0.6596 GB, free: 3.645 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.8594, allocations: 4 kB / 0.6596 GB, free: 3.641 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006183/0.8656, allocations: 3.163 MB / 0.6627 GB, free: 368 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003578/0.8691, allocations: 0.5447 MB / 0.6633 GB, free: 15.83 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03089/0.9, allocations: 18.49 MB / 0.6813 GB, free: 13.28 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006027/0.9061, allocations: 3.534 MB / 0.6848 GB, free: 9.695 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/0.9075, allocations: 187.4 kB / 0.685 GB, free: 9.512 MB / 494.1 MB Notification: Performance of SimCode: time 1.213e-06/0.9075, allocations: 0 / 0.685 GB, free: 9.512 MB / 494.1 MB Notification: Performance of Templates: time 1.442/2.35, allocations: 0.5452 GB / 1.23 GB, free: 125.4 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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: 15.933943662792444]