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.0009802/0.0009804, allocations: 111.8 kB / 17.68 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.0009454/0.0009455, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.339/1.339, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009671/0.0009671, allocations: 55.48 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09293, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01222/0.1052, allocations: 11.08 MB / 362.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007835/0.1131, allocations: 3.65 MB / 366.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002637/0.1157, allocations: 39.88 kB / 366.3 MB, free: 4.848 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2172/0.333, allocations: 8.123 MB / 374.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008361/0.3414, allocations: 4.623 MB / 379 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002681/0.3441, allocations: 0.949 MB / 380 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01013/0.3543, allocations: 5.308 MB / 385.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001796/0.3561, allocations: 0.8918 MB / 386.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006223/0.3623, allocations: 2.859 MB / 389 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006519/0.3689, allocations: 5.123 MB / 394.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.3699, allocations: 348 kB / 394.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.3715, allocations: 392 kB / 394.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00151/0.373, allocations: 1.87 MB / 396.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003323/0.3763, allocations: 2.797 MB / 399.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005605/0.3819, allocations: 7.24 MB / 406.8 MB, free: 11.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.382, allocations: 0 / 406.8 MB, free: 11.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.382, allocations: 0.6562 kB / 406.8 MB, free: 11.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001286/0.3821, allocations: 2.062 kB / 406.8 MB, free: 11.45 MB / 318.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.0118/0.3939, allocations: 7.643 MB / 414.4 MB, free: 3.738 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.394, allocations: 15.89 kB / 414.4 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009493/0.3949, allocations: 0.8454 MB / 415.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003931/0.3989, allocations: 3.174 MB / 418.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.399, allocations: 160.5 kB / 418.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002855/0.3993, allocations: 208.5 kB / 418.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00356/0.4029, allocations: 2.108 MB / 420.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.226e-05/0.4029, allocations: 11.91 kB / 420.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001656/0.4031, allocations: 80 kB / 421 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-05/0.4032, allocations: 52 kB / 421.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003484/0.4066, allocations: 1.895 MB / 423 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01387/0.4205, allocations: 8.884 MB / 431.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003734/0.4243, allocations: 2.328 MB / 434.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002502/0.4268, allocations: 1.376 MB / 435.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001464/0.427, allocations: 44.7 kB / 435.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002017/0.429, allocations: 1.161 MB / 436.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.629e-06/0.429, allocations: 0 / 436.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06537/0.4944, allocations: 22.78 MB / 459.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02797/0.5224, allocations: 13.62 MB / 473.2 MB, free: 8.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01552/0.538, allocations: 14.89 MB / 488 MB, free: 9.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006066/0.5386, allocations: 85.7 kB / 488.1 MB, free: 9.273 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003287/0.5419, allocations: 3.731 MB / 491.9 MB, free: 5.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001564/0.5435, allocations: 1.211 MB / 493.1 MB, free: 4.336 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000969/0.5444, allocations: 0.5157 MB / 493.6 MB, free: 3.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.5446, allocations: 305.1 kB / 493.9 MB, free: 3.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/0.547, allocations: 1.254 MB / 495.1 MB, free: 2.258 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002598/0.5496, allocations: 1.626 MB / 496.8 MB, free: 0.5508 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005176/0.5548, allocations: 2.987 MB / 499.8 MB, free: 13.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.5548, allocations: 0 / 499.8 MB, free: 13.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01099/0.5658, allocations: 5.212 MB / 0.4931 GB, free: 8.242 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.5658, allocations: 12 kB / 0.4931 GB, free: 8.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.5659, allocations: 4 kB / 0.4931 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005473/0.5713, allocations: 1.389 MB / 0.4945 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/0.574, allocations: 0.5383 MB / 0.495 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03006/0.6041, allocations: 23.96 MB / 0.5184 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003359/0.6075, allocations: 127.9 kB / 0.5185 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002927/0.6078, allocations: 120 kB / 0.5187 GB, free: 12.84 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.003023/0.6108, allocations: 2.191 MB / 0.5208 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009893/0.6118, allocations: 0.8174 MB / 0.5216 GB, free: 9.809 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01084/0.6226, allocations: 5.221 MB / 0.5267 GB, free: 4.539 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.238e-05/0.6227, allocations: 36 kB / 0.5267 GB, free: 4.504 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/0.6227, allocations: 4 kB / 0.5267 GB, free: 4.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.82e-05/0.6228, allocations: 15.94 kB / 0.5267 GB, free: 4.484 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2243/0.8471, allocations: 11.05 MB / 0.5375 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/0.8471, allocations: 2.031 kB / 0.5375 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002599/0.8497, allocations: 461.4 kB / 0.538 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005763/0.8555, allocations: 1.331 MB / 0.5393 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000461/0.856, allocations: 79.77 kB / 0.5394 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02234/0.8783, allocations: 21.85 MB / 0.5607 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02295/0.9013, allocations: 11.93 MB / 0.5723 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01297/0.9143, allocations: 6.951 MB / 0.5791 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001812/0.9162, allocations: 0.7455 MB / 0.5799 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001012/0.9172, allocations: 71.8 kB / 0.5799 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002267/0.9195, allocations: 106 kB / 0.58 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007057/0.9202, allocations: 278 kB / 0.5803 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/0.9204, allocations: 90.89 kB / 0.5804 GB, free: 116.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01156/0.932, allocations: 11.12 MB / 0.5912 GB, free: 105.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.932, allocations: 0 / 0.5912 GB, free: 105.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004291/0.9363, allocations: 1.08 MB / 0.5923 GB, free: 104.8 MB / 446.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.001311/0.9377, allocations: 0.4993 MB / 0.5928 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007389/0.9451, allocations: 4.815 MB / 0.5975 GB, free: 99.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/0.9451, allocations: 0 / 0.5975 GB, free: 99.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004321/0.9494, allocations: 3.285 MB / 0.6007 GB, free: 96.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/0.9523, allocations: 0.5347 MB / 0.6012 GB, free: 95.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01928/0.9716, allocations: 17.91 MB / 0.6187 GB, free: 77.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003823/0.9754, allocations: 4.017 MB / 0.6226 GB, free: 73.62 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001886/0.9773, allocations: 304.9 kB / 0.6229 GB, free: 73.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006282/0.978, allocations: 171.4 kB / 0.6231 GB, free: 73.16 MB / 446.1 MB Notification: Performance of SimCode: time 2.425e-06/0.978, allocations: 4 kB / 0.6231 GB, free: 73.15 MB / 446.1 MB Notification: Performance of Templates: time 0.1607/1.139, allocations: 65.39 MB / 0.6869 GB, free: 8.148 MB / 446.1 MB 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 -s cvode -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