Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001433/0.001433, allocations: 185.2 kB / 19.33 MB, free: 3.762 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.415/1.415, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001412/0.001412, allocations: 48.34 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1104, allocations: 46.63 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.2395/0.35, allocations: 10.97 MB / 386.8 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007906/0.3579, allocations: 3.545 MB / 390.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003035/0.361, allocations: 39.5 kB / 390.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01146/0.3725, allocations: 8.135 MB / 398.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007891/0.3804, allocations: 4.623 MB / 403.1 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002858/0.3833, allocations: 0.9219 MB / 404.1 MB, free: 440 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01027/0.3936, allocations: 5.306 MB / 409.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002349/0.396, allocations: 0.8952 MB / 410.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006526/0.4025, allocations: 2.87 MB / 413.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007725/0.4103, allocations: 5.123 MB / 418.2 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001537/0.4119, allocations: 352 kB / 418.6 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001695/0.4136, allocations: 391.9 kB / 419 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001944/0.4155, allocations: 1.865 MB / 420.8 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003157/0.4187, allocations: 2.796 MB / 423.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006822/0.4255, allocations: 7.242 MB / 430.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.4256, allocations: 4 kB / 430.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4256, allocations: 3.938 kB / 430.9 MB, free: 8.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000194/0.4258, allocations: 0 / 430.9 MB, free: 8.508 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: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01222/0.438, allocations: 7.643 MB / 438.5 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4381, allocations: 11.97 kB / 438.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/0.4391, allocations: 0.8455 MB / 439.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004007/0.4431, allocations: 3.179 MB / 442.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.4433, allocations: 160.5 kB / 442.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003053/0.4436, allocations: 212 kB / 442.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00388/0.4475, allocations: 2.116 MB / 445 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.478e-05/0.4475, allocations: 0 / 445 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001793/0.4477, allocations: 88 kB / 445.1 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-05/0.4478, allocations: 48 kB / 445.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003729/0.4515, allocations: 1.895 MB / 447.1 MB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01464/0.4662, allocations: 8.869 MB / 455.9 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004068/0.4703, allocations: 2.333 MB / 458.3 MB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002835/0.4731, allocations: 1.423 MB / 459.7 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.4733, allocations: 46.28 kB / 459.7 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002362/0.4756, allocations: 1.159 MB / 460.9 MB, free: 9.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 5.49e-06/0.4757, allocations: 0 / 460.9 MB, free: 9.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.06627/0.5419, allocations: 22.81 MB / 483.7 MB, free: 2.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02898/0.5709, allocations: 13.6 MB / 497.3 MB, free: 4.754 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01698/0.588, allocations: 14.9 MB / 0.5002 GB, free: 5.918 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005574/0.5885, allocations: 85.7 kB / 0.5003 GB, free: 5.828 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003222/0.5918, allocations: 3.725 MB / 0.5039 GB, free: 2.098 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001591/0.5934, allocations: 1.209 MB / 0.5051 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009514/0.5944, allocations: 0.5196 MB / 0.5056 GB, free: 352 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.112e-05/0.5945, allocations: 301.1 kB / 0.5059 GB, free: 48 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002427/0.5969, allocations: 1.252 MB / 0.5071 GB, free: 14.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002667/0.5996, allocations: 1.622 MB / 0.5087 GB, free: 13.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005091/0.6047, allocations: 3.004 MB / 0.5116 GB, free: 10.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.6047, allocations: 4 kB / 0.5116 GB, free: 10.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01094/0.6156, allocations: 5.207 MB / 0.5167 GB, free: 4.762 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.6157, allocations: 8 kB / 0.5167 GB, free: 4.754 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.6157, allocations: 8 kB / 0.5167 GB, free: 4.746 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005285/0.621, allocations: 1.381 MB / 0.5181 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002663/0.6237, allocations: 0.5422 MB / 0.5186 GB, free: 2.797 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0293/0.653, allocations: 23.95 MB / 0.542 GB, free: 9.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003281/0.6563, allocations: 135.8 kB / 0.5421 GB, free: 9.438 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005483/0.6569, allocations: 116 kB / 0.5423 GB, free: 9.324 MB / 478.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.00361/0.6605, allocations: 2.176 MB / 0.5444 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/0.6618, allocations: 0.8214 MB / 0.5452 GB, free: 6.305 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/0.6733, allocations: 5.223 MB / 0.5503 GB, free: 1.035 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.961e-05/0.6734, allocations: 36 kB / 0.5503 GB, free: 1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.582e-05/0.6734, allocations: 4 kB / 0.5503 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.87e-05/0.6734, allocations: 27.86 kB / 0.5503 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2161/0.8895, allocations: 11.05 MB / 0.5611 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/0.8896, allocations: 2.125 kB / 0.5611 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/0.8919, allocations: 461.4 kB / 0.5616 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005251/0.8972, allocations: 1.336 MB / 0.5629 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004099/0.8976, allocations: 75.03 kB / 0.563 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02421/0.9218, allocations: 21.84 MB / 0.5843 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0234/0.9453, allocations: 11.93 MB / 0.5959 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01426/0.9596, allocations: 6.942 MB / 0.6027 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/0.9613, allocations: 0.7529 MB / 0.6035 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001134/0.9625, allocations: 66.62 kB / 0.6035 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002699/0.9652, allocations: 116.1 kB / 0.6036 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00088/0.9661, allocations: 266.8 kB / 0.6039 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/0.9663, allocations: 95.67 kB / 0.604 GB, free: 117.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01033/0.9767, allocations: 11.12 MB / 0.6148 GB, free: 107.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.363e-06/0.9767, allocations: 0 / 0.6148 GB, free: 107.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004592/0.9813, allocations: 1.085 MB / 0.6159 GB, free: 106.4 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.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * 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.001247/0.9826, allocations: 499.7 kB / 0.6164 GB, free: 105.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006983/0.9896, allocations: 4.813 MB / 0.6211 GB, free: 101 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.9896, allocations: 0 / 0.6211 GB, free: 101 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004457/0.9941, allocations: 3.29 MB / 0.6243 GB, free: 97.64 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003171/0.9973, allocations: 0.5654 MB / 0.6248 GB, free: 97.08 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02163/1.019, allocations: 18.23 MB / 0.6426 GB, free: 78.82 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003178/1.022, allocations: 4.013 MB / 0.6466 GB, free: 74.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001225/1.023, allocations: 203.3 kB / 0.6468 GB, free: 74.56 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/1.023, allocations: 0 / 0.6468 GB, free: 74.56 MB / 478.1 MB Notification: Performance of Templates: time 1.399/2.423, allocations: 0.542 GB / 1.189 GB, free: 127.7 MB / 0.5137 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches