Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001479/0.001479, allocations: 185.4 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.921/1.921, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001046/0.001046, allocations: 93.69 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003728, allocations: 11.98 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3247, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1557/0.4805, allocations: 92.48 MB / 467 MB, free: 4.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/0.4809, allocations: 91.95 kB / 467.1 MB, free: 4.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5855/1.066, allocations: 78.1 MB / 0.5324 GB, free: 81.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.086e-06/1.066, allocations: 0 / 0.5324 GB, free: 81.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001076/1.068, allocations: 116 kB / 0.5325 GB, free: 81.29 MB / 378.7 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.01891/1.087, allocations: 6.936 MB / 0.5393 GB, free: 74.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/1.087, allocations: 8.031 kB / 0.5393 GB, free: 74.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002569/1.089, allocations: 0.8605 MB / 0.5402 GB, free: 73.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/1.101, allocations: 3.634 MB / 0.5437 GB, free: 69.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/1.101, allocations: 160.1 kB / 0.5439 GB, free: 69.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005947/1.102, allocations: 203.9 kB / 0.5441 GB, free: 69.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006796/1.109, allocations: 2.135 MB / 0.5461 GB, free: 67.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.143e-05/1.109, allocations: 0 / 0.5461 GB, free: 67.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003102/1.109, allocations: 88 kB / 0.5462 GB, free: 67.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.091e-05/1.109, allocations: 48 kB / 0.5463 GB, free: 67.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006892/1.116, allocations: 1.997 MB / 0.5482 GB, free: 65.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02718/1.143, allocations: 10.13 MB / 0.5581 GB, free: 54.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006177/1.149, allocations: 2.41 MB / 0.5605 GB, free: 52.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003051/1.15, allocations: 36.95 kB / 0.5605 GB, free: 52.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003839/1.154, allocations: 1.206 MB / 0.5617 GB, free: 51.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 7.224e-06/1.154, allocations: 0 / 0.5617 GB, free: 51.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=385): time 0.09939/1.253, allocations: 21.63 MB / 0.5828 GB, free: 29.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1739/1.427, allocations: 34.48 MB / 0.6165 GB, free: 10.17 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1677/1.595, allocations: 13.48 MB / 0.6296 GB, free: 12.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007736/1.596, allocations: 85.7 kB / 0.6297 GB, free: 12.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005464/1.601, allocations: 2.866 MB / 0.6325 GB, free: 9.789 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002173/1.603, allocations: 1.271 MB / 0.6338 GB, free: 8.531 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006133/1.604, allocations: 68 kB / 0.6338 GB, free: 8.465 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003295/1.604, allocations: 446.2 kB / 0.6343 GB, free: 8.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005437/1.61, allocations: 1.358 MB / 0.6356 GB, free: 6.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00615/1.616, allocations: 1.709 MB / 0.6372 GB, free: 4.883 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00617/1.622, allocations: 1.562 MB / 0.6388 GB, free: 3.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-05/1.622, allocations: 0 / 0.6388 GB, free: 3.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=448) (initialization): time 0.3068/1.929, allocations: 4.809 MB / 0.6435 GB, free: 106.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/1.929, allocations: 8.188 kB / 0.6435 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.762e-05/1.929, allocations: 3.094 kB / 0.6435 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009768/1.939, allocations: 1.462 MB / 0.6449 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005663/1.945, allocations: 0.569 MB / 0.6455 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04213/1.987, allocations: 22.66 MB / 0.6676 GB, free: 93.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006319/1.993, allocations: 194.9 kB / 0.6678 GB, free: 93.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000855/1.994, allocations: 121.7 kB / 0.6679 GB, free: 93.04 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (320): * Single equations (assignments): 309 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.006243/2, allocations: 2.203 MB / 0.67 GB, free: 92.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002955/2.003, allocations: 0.8498 MB / 0.6709 GB, free: 92.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02138/2.025, allocations: 5.632 MB / 0.6764 GB, free: 90.22 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009192/2.034, allocations: 2.474 MB / 0.6788 GB, free: 89.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.899e-05/2.034, allocations: 8 kB / 0.6788 GB, free: 89.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.109e-05/2.034, allocations: 19.45 kB / 0.6788 GB, free: 89.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04155/2.076, allocations: 14.21 MB / 0.6927 GB, free: 83.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.855e-05/2.076, allocations: 3.469 kB / 0.6927 GB, free: 83.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004878/2.081, allocations: 492.8 kB / 0.6932 GB, free: 83.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00974/2.091, allocations: 1.47 MB / 0.6946 GB, free: 82.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006631/2.091, allocations: 85.94 kB / 0.6947 GB, free: 82.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03456/2.126, allocations: 20.84 MB / 0.715 GB, free: 61.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1414/2.267, allocations: 30.51 MB / 0.7448 GB, free: 34.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02643/2.294, allocations: 8.042 MB / 0.7527 GB, free: 26.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004946/2.299, allocations: 1.597 MB / 0.7542 GB, free: 24.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00235/2.301, allocations: 99.94 kB / 0.7543 GB, free: 24.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005474/2.307, allocations: 167.9 kB / 0.7545 GB, free: 24.19 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001252/2.308, allocations: 287.5 kB / 0.7548 GB, free: 23.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003479/2.308, allocations: 104 kB / 0.7549 GB, free: 23.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.02466/2.333, allocations: 10.88 MB / 0.7655 GB, free: 12.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.91e-07/2.333, allocations: 0 / 0.7655 GB, free: 12.98 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007775/2.341, allocations: 1.764 MB / 0.7672 GB, free: 11.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,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 (266): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.002094/2.343, allocations: 0.5197 MB / 0.7677 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01359/2.357, allocations: 5.076 MB / 0.7727 GB, free: 5.617 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.457e-06/2.357, allocations: 4 kB / 0.7727 GB, free: 5.613 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008458/2.365, allocations: 3.528 MB / 0.7761 GB, free: 1.969 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005204/2.37, allocations: 0.4893 MB / 0.7766 GB, free: 1.492 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05439/2.425, allocations: 22.29 MB / 0.7984 GB, free: 11.17 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009842/2.435, allocations: 4.215 MB / 0.8025 GB, free: 6.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00363/2.438, allocations: 377 kB / 0.8029 GB, free: 6.555 MB / 442.7 MB Notification: Performance of SimCode: time 1.412e-06/2.438, allocations: 0 / 0.8029 GB, free: 6.555 MB / 442.7 MB Notification: Performance of Templates: time 2.601/5.04, allocations: 0.5433 GB / 1.346 GB, free: 123.1 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches