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.00151/0.00151, allocations: 107.4 kB / 17.15 MB, free: 6.328 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.001598/0.001598, allocations: 198 kB / 18.07 MB, free: 5.434 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.461/1.461, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001155/0.001155, allocations: 51.91 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09909/0.1003, allocations: 46.64 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01181/0.1121, allocations: 10.88 MB / 337.5 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007046/0.1192, allocations: 3.488 MB / 341 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001914/0.1212, allocations: 47.81 kB / 341 MB, free: 6.398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007638/0.1289, allocations: 8.133 MB / 349.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006449/0.1354, allocations: 4.559 MB / 353.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002444/0.1378, allocations: 0.8273 MB / 354.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006832/0.1447, allocations: 5.09 MB / 359.6 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00152/0.1462, allocations: 0.7691 MB / 360.4 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004006/0.1503, allocations: 2.595 MB / 363 MB, free: 360 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005836/0.1561, allocations: 4.944 MB / 367.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008446/0.157, allocations: 168 kB / 368.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008387/0.1578, allocations: 211.8 kB / 368.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.1592, allocations: 1.771 MB / 370.1 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002407/0.1616, allocations: 2.608 MB / 372.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1582/0.3198, allocations: 6.928 MB / 379.6 MB, free: 31.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3199, allocations: 3.5 kB / 379.6 MB, free: 31.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3199, allocations: 0 / 379.6 MB, free: 31.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002584/0.3202, allocations: 2.375 kB / 379.6 MB, free: 31.5 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.0133/0.3335, allocations: 7.644 MB / 387.3 MB, free: 27.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3335, allocations: 9.344 kB / 387.3 MB, free: 27.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001184/0.3347, allocations: 0.8435 MB / 388.1 MB, free: 27.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003785/0.3385, allocations: 3.158 MB / 391.3 MB, free: 25.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.3386, allocations: 158.7 kB / 391.4 MB, free: 25.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002752/0.3389, allocations: 209.2 kB / 391.6 MB, free: 25.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003806/0.3427, allocations: 2.113 MB / 393.8 MB, free: 25.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.057e-05/0.3428, allocations: 8.594 kB / 393.8 MB, free: 25.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001748/0.343, allocations: 81.72 kB / 393.8 MB, free: 25.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.925e-05/0.343, allocations: 50.19 kB / 393.9 MB, free: 25.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003684/0.3467, allocations: 1.897 MB / 395.8 MB, free: 25.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01363/0.3603, allocations: 8.946 MB / 404.7 MB, free: 20.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003123/0.3635, allocations: 2.325 MB / 407.1 MB, free: 19.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002164/0.3657, allocations: 1.386 MB / 408.4 MB, free: 18.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001252/0.3658, allocations: 38.14 kB / 408.5 MB, free: 18.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001796/0.3676, allocations: 1.163 MB / 409.6 MB, free: 18.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 3.687e-06/0.3676, allocations: 0 / 409.6 MB, free: 18.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.06309/0.4307, allocations: 22.79 MB / 432.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02873/0.4595, allocations: 13.03 MB / 445.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01976/0.4793, allocations: 14.9 MB / 460.4 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008381/0.4802, allocations: 85.7 kB / 460.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003715/0.4839, allocations: 3.732 MB / 464.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001447/0.4854, allocations: 1.207 MB / 465.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.4864, allocations: 0.5117 MB / 465.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4865, allocations: 306.9 kB / 466.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002672/0.4892, allocations: 1.26 MB / 467.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002836/0.492, allocations: 1.614 MB / 469.1 MB, free: 8.023 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005419/0.4975, allocations: 3.001 MB / 472.1 MB, free: 4.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.4975, allocations: 0 / 472.1 MB, free: 4.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01222/0.5097, allocations: 5.206 MB / 477.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.5098, allocations: 8 kB / 477.3 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.5098, allocations: 4 kB / 477.3 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005835/0.5157, allocations: 1.384 MB / 478.7 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003035/0.5188, allocations: 0.538 MB / 479.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02713/0.5459, allocations: 21.92 MB / 0.4894 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0041/0.55, allocations: 127.8 kB / 0.4895 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005749/0.5506, allocations: 123.9 kB / 0.4896 GB, free: 6.621 MB / 398.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.003668/0.5543, allocations: 2.189 MB / 0.4918 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001423/0.5558, allocations: 0.8137 MB / 0.4926 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01161/0.5674, allocations: 5.219 MB / 0.4977 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.428e-05/0.5674, allocations: 36 kB / 0.4977 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/0.5675, allocations: 4 kB / 0.4977 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.884e-05/0.5675, allocations: 19.94 kB / 0.4977 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02112/0.5886, allocations: 11.09 MB / 0.5085 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/0.5887, allocations: 0 / 0.5085 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002718/0.5914, allocations: 461.7 kB / 0.509 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005867/0.5973, allocations: 1.337 MB / 0.5103 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006245/0.598, allocations: 71.97 kB / 0.5104 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1999/0.7979, allocations: 20.01 MB / 0.5299 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0252/0.8232, allocations: 11.4 MB / 0.541 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01406/0.8373, allocations: 6.943 MB / 0.5478 GB, free: 135.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001607/0.8389, allocations: 0.7511 MB / 0.5485 GB, free: 135.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008889/0.8398, allocations: 66.97 kB / 0.5486 GB, free: 135.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00236/0.8422, allocations: 115.8 kB / 0.5487 GB, free: 135.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007779/0.843, allocations: 271.4 kB / 0.549 GB, free: 135.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001972/0.8432, allocations: 96.39 kB / 0.5491 GB, free: 135.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.01016/0.8534, allocations: 11.12 MB / 0.5599 GB, free: 129.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8534, allocations: 0 / 0.5599 GB, free: 129.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00464/0.858, allocations: 1.078 MB / 0.561 GB, free: 128.7 MB / 430.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.001391/0.8594, allocations: 0.503 MB / 0.5615 GB, free: 128.3 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007588/0.867, allocations: 4.798 MB / 0.5662 GB, free: 123.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.8671, allocations: 0 / 0.5662 GB, free: 123.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004497/0.8716, allocations: 3.275 MB / 0.5694 GB, free: 120.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003729/0.8754, allocations: 0.5176 MB / 0.5699 GB, free: 120.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02442/0.8998, allocations: 20.22 MB / 0.5896 GB, free: 100.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003678/0.9035, allocations: 4.006 MB / 0.5935 GB, free: 96.45 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002003/0.9055, allocations: 308.9 kB / 0.5938 GB, free: 96.14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006636/0.9062, allocations: 171.4 kB / 0.594 GB, free: 95.98 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.9062, allocations: 0 / 0.594 GB, free: 95.98 MB / 430.1 MB Notification: Performance of Templates: time 0.1547/1.061, allocations: 62.8 MB / 0.6553 GB, free: 33.1 MB / 430.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches