Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.001605/0.001605, 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.001954/0.001954, allocations: 207.5 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.518/1.518, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 71.88 kB / 378.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2458, allocations: 53.41 MB / 431.6 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01331/0.2591, allocations: 9.85 MB / 441.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007783/0.2669, allocations: 3.802 MB / 445.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001786/0.2687, allocations: 47.75 kB / 445.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00857/0.2773, allocations: 8.147 MB / 453.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007103/0.2844, allocations: 4.741 MB / 458.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002552/0.2869, allocations: 0.9283 MB / 459.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007543/0.2945, allocations: 5.412 MB / 464.6 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001292/0.2958, allocations: 0.5554 MB / 465.1 MB, free: 4.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005031/0.3008, allocations: 2.93 MB / 468 MB, free: 1.957 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007826/0.3086, allocations: 5.668 MB / 473.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001055/0.3097, allocations: 360 kB / 474.1 MB, free: 11.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.3108, allocations: 404 kB / 474.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.3123, allocations: 1.884 MB / 476.3 MB, free: 9.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002207/0.3145, allocations: 2.085 MB / 478.4 MB, free: 7.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008/0.3225, allocations: 7.516 MB / 485.9 MB, free: 15.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.3225, allocations: 0 / 485.9 MB, free: 15.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3225, allocations: 0 / 485.9 MB, free: 15.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002356/0.3228, allocations: 0 / 485.9 MB, free: 15.98 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01404/0.3368, allocations: 7.956 MB / 493.9 MB, free: 7.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.3369, allocations: 15.98 kB / 493.9 MB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001844/0.3387, allocations: 0.9519 MB / 494.9 MB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005268/0.344, allocations: 3.226 MB / 498.1 MB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.3441, allocations: 156.2 kB / 498.2 MB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003502/0.3445, allocations: 208 kB / 498.5 MB, free: 3.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004235/0.3487, allocations: 2.222 MB / 0.4889 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.365e-05/0.3488, allocations: 11.95 kB / 0.489 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001892/0.349, allocations: 83.94 kB / 0.489 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.502e-05/0.349, allocations: 52 kB / 0.4891 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003823/0.3529, allocations: 1.845 MB / 0.4909 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01584/0.3687, allocations: 7.573 MB / 0.4983 GB, free: 7.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004232/0.3729, allocations: 2.032 MB / 0.5003 GB, free: 5.262 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002785/0.3757, allocations: 1.279 MB / 0.5015 GB, free: 3.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.3758, allocations: 34.3 kB / 0.5015 GB, free: 3.949 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002172/0.378, allocations: 1.258 MB / 0.5028 GB, free: 2.621 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 5.3e-06/0.378, allocations: 3.938 kB / 0.5028 GB, free: 2.617 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.06727/0.4453, allocations: 22.22 MB / 0.5245 GB, free: 12.25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2577/0.703, allocations: 13.12 MB / 0.5373 GB, free: 96.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01612/0.7191, allocations: 15.05 MB / 0.552 GB, free: 90.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005573/0.7196, allocations: 85.7 kB / 0.5521 GB, free: 90.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002291/0.7219, allocations: 3.572 MB / 0.5555 GB, free: 87.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009933/0.7229, allocations: 1.293 MB / 0.5568 GB, free: 87.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007942/0.7237, allocations: 0.5157 MB / 0.5573 GB, free: 86.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.769e-05/0.7238, allocations: 309 kB / 0.5576 GB, free: 86.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002057/0.7258, allocations: 1.231 MB / 0.5588 GB, free: 85.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002219/0.728, allocations: 1.732 MB / 0.5605 GB, free: 83.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004159/0.7322, allocations: 2.975 MB / 0.5634 GB, free: 80.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.7322, allocations: 0.8125 kB / 0.5634 GB, free: 80.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01116/0.7434, allocations: 5.199 MB / 0.5685 GB, free: 76.24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.134e-05/0.7434, allocations: 11.94 kB / 0.5685 GB, free: 76.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.169e-05/0.7434, allocations: 4 kB / 0.5685 GB, free: 76.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005309/0.7487, allocations: 1.407 MB / 0.5699 GB, free: 74.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002654/0.7514, allocations: 0.5344 MB / 0.5704 GB, free: 74.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02235/0.7737, allocations: 22.53 MB / 0.5924 GB, free: 50.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003127/0.7769, allocations: 109 kB / 0.5925 GB, free: 50.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003473/0.7772, allocations: 116 kB / 0.5926 GB, free: 50.75 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 (313): * Single equations (assignments): 304 * 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,3,100.0%), (1,4,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.002493/0.7797, allocations: 2.206 MB / 0.5948 GB, free: 48.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008777/0.7806, allocations: 0.8669 MB / 0.5956 GB, free: 47.67 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009753/0.7903, allocations: 5.248 MB / 0.6007 GB, free: 42.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/0.7904, allocations: 39.98 kB / 0.6008 GB, free: 42.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.11e-05/0.7904, allocations: 7.938 kB / 0.6008 GB, free: 42.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.173e-05/0.7904, allocations: 19.94 kB / 0.6008 GB, free: 42.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01727/0.8077, allocations: 9.891 MB / 0.6105 GB, free: 32.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.8077, allocations: 0 / 0.6105 GB, free: 32.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/0.81, allocations: 454.8 kB / 0.6109 GB, free: 32.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005048/0.8151, allocations: 1.346 MB / 0.6122 GB, free: 30.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003754/0.8154, allocations: 75.97 kB / 0.6123 GB, free: 30.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01999/0.8354, allocations: 20.44 MB / 0.6322 GB, free: 9.246 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02339/0.8588, allocations: 11.45 MB / 0.6434 GB, free: 13.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01528/0.8741, allocations: 6.937 MB / 0.6502 GB, free: 6.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/0.8758, allocations: 0.7265 MB / 0.6509 GB, free: 5.84 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007575/0.8766, allocations: 73.95 kB / 0.651 GB, free: 5.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002185/0.8788, allocations: 99.95 kB / 0.6511 GB, free: 5.672 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007008/0.8795, allocations: 283.2 kB / 0.6513 GB, free: 5.398 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002141/0.8797, allocations: 95.97 kB / 0.6514 GB, free: 5.305 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01398/0.8937, allocations: 11.22 MB / 0.6624 GB, free: 10.21 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.8937, allocations: 3.938 kB / 0.6624 GB, free: 10.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004169/0.8978, allocations: 1.096 MB / 0.6635 GB, free: 9.109 MB / 478.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 (260): * Single equations (assignments): 249 * 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.001982/0.8998, allocations: 0.5219 MB / 0.664 GB, free: 8.746 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00831/0.9081, allocations: 4.607 MB / 0.6685 GB, free: 4.02 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/0.9082, allocations: 4 kB / 0.6685 GB, free: 4.016 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005292/0.9134, allocations: 3.121 MB / 0.6715 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003407/0.9169, allocations: 0.5607 MB / 0.6721 GB, free: 240 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03087/0.9477, allocations: 18.28 MB / 0.6899 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005507/0.9532, allocations: 3.568 MB / 0.6934 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002042/0.9553, allocations: 309.2 kB / 0.6937 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007484/0.956, allocations: 175.4 kB / 0.6939 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of SimCode: time 1.463e-06/0.956, allocations: 0 / 0.6939 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of Templates: time 0.324/1.28, allocations: 73.48 MB / 0.7656 GB, free: 161.7 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 9.74439162015915]