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) 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 4.0.0+maint.om/package.mo", uses=false) 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=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_4.0.0_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_4.0.0_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.001253/0.001253, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001274/0.001274, allocations: 184.5 kB / 18.67 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 51.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2335, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01165/0.2452, allocations: 11.1 MB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006525/0.2518, allocations: 3.646 MB / 416.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/0.2533, allocations: 39.88 kB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007196/0.2605, allocations: 8.128 MB / 424.3 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00581/0.2664, allocations: 4.628 MB / 428.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002217/0.2686, allocations: 0.9459 MB / 429.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006112/0.2747, allocations: 5.319 MB / 435.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.2762, allocations: 0.8787 MB / 436.1 MB, free: 6.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003779/0.28, allocations: 2.864 MB / 438.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005804/0.2858, allocations: 5.119 MB / 444.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009236/0.2867, allocations: 356 kB / 444.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.2879, allocations: 388 kB / 444.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001592/0.2895, allocations: 1.869 MB / 446.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002958/0.2924, allocations: 2.799 MB / 449.5 MB, free: 8.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006756/0.2992, allocations: 7.24 MB / 456.7 MB, free: 1.363 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.2992, allocations: 0 / 456.7 MB, free: 1.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2992, allocations: 0 / 456.7 MB, free: 1.363 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002024/0.2994, allocations: 0 / 456.7 MB, free: 1.363 MB / 366.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.01253/0.312, allocations: 7.643 MB / 464.3 MB, free: 9.613 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.312, allocations: 8.031 kB / 464.4 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009894/0.313, allocations: 0.8455 MB / 465.2 MB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004074/0.3171, allocations: 3.187 MB / 468.4 MB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.3173, allocations: 164.5 kB / 468.5 MB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003129/0.3176, allocations: 204.1 kB / 468.7 MB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003891/0.3215, allocations: 2.112 MB / 470.9 MB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.944e-05/0.3215, allocations: 3.906 kB / 470.9 MB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001905/0.3217, allocations: 91.94 kB / 470.9 MB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.599e-05/0.3218, allocations: 48 kB / 471 MB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003742/0.3255, allocations: 1.899 MB / 472.9 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01364/0.3392, allocations: 8.868 MB / 481.8 MB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004006/0.3432, allocations: 2.325 MB / 484.1 MB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002951/0.3462, allocations: 1.42 MB / 485.5 MB, free: 4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.3463, allocations: 42.28 kB / 485.5 MB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002156/0.3485, allocations: 1.16 MB / 486.7 MB, free: 2.762 MB / 398.1 MB Notification: Performance of pre-optimization done (n=242): time 5.64e-06/0.3485, allocations: 3.984 kB / 486.7 MB, free: 2.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=367): time 0.06578/0.4143, allocations: 22.82 MB / 0.4976 GB, free: 11.58 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0293/0.4436, allocations: 13.6 MB / 0.5109 GB, free: 13.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01583/0.4595, allocations: 14.89 MB / 0.5254 GB, free: 14.78 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000533/0.4601, allocations: 89.7 kB / 0.5255 GB, free: 14.68 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003298/0.4634, allocations: 3.721 MB / 0.5291 GB, free: 10.95 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001346/0.4647, allocations: 1.22 MB / 0.5303 GB, free: 9.715 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009514/0.4657, allocations: 0.5196 MB / 0.5308 GB, free: 9.188 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.731e-05/0.4658, allocations: 301.1 kB / 0.5311 GB, free: 8.891 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002558/0.4684, allocations: 1.248 MB / 0.5323 GB, free: 7.641 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002819/0.4712, allocations: 1.622 MB / 0.5339 GB, free: 5.938 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005412/0.4766, allocations: 2.992 MB / 0.5368 GB, free: 2.875 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.4767, allocations: 4 kB / 0.5368 GB, free: 2.871 MB / 462.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.2026/0.6792, allocations: 5.203 MB / 0.5419 GB, free: 127 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/0.6793, allocations: 11.31 kB / 0.5419 GB, free: 127 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.6793, allocations: 3.875 kB / 0.5419 GB, free: 127 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004963/0.6843, allocations: 1.394 MB / 0.5433 GB, free: 126.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002632/0.6869, allocations: 0.5439 MB / 0.5438 GB, free: 126.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02261/0.7096, allocations: 23.95 MB / 0.5672 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002997/0.7126, allocations: 134.2 kB / 0.5673 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002594/0.7129, allocations: 111.7 kB / 0.5675 GB, free: 110.3 MB / 462.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.002532/0.7154, allocations: 2.184 MB / 0.5696 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007517/0.7162, allocations: 0.8121 MB / 0.5704 GB, free: 108.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00963/0.7258, allocations: 5.225 MB / 0.5755 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/0.7259, allocations: 36 kB / 0.5755 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.7259, allocations: 8 kB / 0.5755 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.225e-05/0.7259, allocations: 19.92 kB / 0.5755 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01623/0.7422, allocations: 11.05 MB / 0.5863 GB, free: 91.97 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-05/0.7422, allocations: 4 kB / 0.5863 GB, free: 91.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002252/0.7445, allocations: 459.3 kB / 0.5868 GB, free: 91.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004834/0.7493, allocations: 1.338 MB / 0.5881 GB, free: 90.15 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003225/0.7497, allocations: 75.97 kB / 0.5882 GB, free: 90.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01961/0.7693, allocations: 21.86 MB / 0.6095 GB, free: 67.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0207/0.79, allocations: 11.93 MB / 0.6212 GB, free: 55.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01159/0.8016, allocations: 6.95 MB / 0.6279 GB, free: 48.05 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.8027, allocations: 0.7444 MB / 0.6287 GB, free: 47.28 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005296/0.8032, allocations: 68.83 kB / 0.6287 GB, free: 47.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001967/0.8052, allocations: 111.9 kB / 0.6288 GB, free: 47.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005567/0.8058, allocations: 267.3 kB / 0.6291 GB, free: 46.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/0.8059, allocations: 95.97 kB / 0.6292 GB, free: 46.74 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.008091/0.814, allocations: 11.12 MB / 0.64 GB, free: 35.67 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.8141, allocations: 0 / 0.64 GB, free: 35.67 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003444/0.8175, allocations: 1.078 MB / 0.6411 GB, free: 34.59 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.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.001116/0.8186, allocations: 0.5073 MB / 0.6416 GB, free: 34.25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006637/0.8253, allocations: 4.81 MB / 0.6463 GB, free: 29.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.8253, allocations: 0 / 0.6463 GB, free: 29.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003935/0.8292, allocations: 3.289 MB / 0.6495 GB, free: 25.92 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002625/0.8319, allocations: 0.5456 MB / 0.65 GB, free: 25.38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01879/0.8507, allocations: 18.25 MB / 0.6679 GB, free: 7.129 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003011/0.8537, allocations: 4.014 MB / 0.6718 GB, free: 3.066 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/0.8549, allocations: 199.4 kB / 0.672 GB, free: 2.871 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.8549, allocations: 0 / 0.672 GB, free: 2.871 MB / 462.1 MB Notification: Performance of Templates: time 1.381/2.236, allocations: 0.5419 GB / 1.214 GB, free: 118.3 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (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) 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) Reference file matches