Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.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.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedFeed_x.v|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleFeed_x.v|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedFeed_x.v|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleFeed_x.v|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.442/1.442, allocations: 205.2 MB / 219.8 MB, free: 14.29 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.0008651/0.0008651, allocations: 86.66 kB / 268 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.896e-05/1.905e-05, allocations: 0 / 322.5 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.07981, allocations: 47.57 MB / 370 MB, free: 1.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3112/0.3911, allocations: 91.99 MB / 462 MB, free: 1.426 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.3914, allocations: 89.69 kB / 462.1 MB, free: 1.379 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1383/0.5297, allocations: 50.05 MB / 0.5002 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5298, allocations: 4 kB / 0.5002 GB, free: 0.543 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00012/0.5299, allocations: 52 kB / 0.5002 GB, free: 0.4922 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: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.005183/0.5351, allocations: 2.303 MB / 0.5025 GB, free: 14.13 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.5351, allocations: 8.031 kB / 0.5025 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005361/0.5357, allocations: 296.4 kB / 0.5027 GB, free: 13.83 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00263/0.5383, allocations: 1.333 MB / 0.504 GB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.5385, allocations: 160.1 kB / 0.5042 GB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003012/0.5388, allocations: 204 kB / 0.5044 GB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003579/0.5424, allocations: 1.784 MB / 0.5061 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.193e-05/0.5424, allocations: 11.91 kB / 0.5061 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001817/0.5426, allocations: 80 kB / 0.5062 GB, free: 10.15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.734e-05/0.5427, allocations: 52 kB / 0.5063 GB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003687/0.5464, allocations: 1.77 MB / 0.508 GB, free: 8.316 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01409/0.5605, allocations: 7.59 MB / 0.5154 GB, free: 460 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003305/0.5639, allocations: 2.253 MB / 0.5176 GB, free: 14.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002185/0.5661, allocations: 1.288 MB / 0.5189 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.5662, allocations: 41.97 kB / 0.5189 GB, free: 12.83 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.5663, allocations: 60.55 kB / 0.519 GB, free: 12.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=240): time 4.589e-06/0.5663, allocations: 0 / 0.519 GB, free: 12.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=372): time 0.2498/0.8161, allocations: 15.27 MB / 0.5339 GB, free: 107.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0662/0.8824, allocations: 30.86 MB / 0.564 GB, free: 94.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002592/0.885, allocations: 1.62 MB / 0.5656 GB, free: 94.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007921/0.8858, allocations: 83.64 kB / 0.5657 GB, free: 94.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005957/0.8864, allocations: 0.9683 MB / 0.5666 GB, free: 93.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009413/0.8874, allocations: 1.227 MB / 0.5678 GB, free: 92.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.8876, allocations: 68.81 kB / 0.5679 GB, free: 92.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.8877, allocations: 432.8 kB / 0.5683 GB, free: 92.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002143/0.8899, allocations: 1.249 MB / 0.5695 GB, free: 91.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002057/0.8919, allocations: 1.543 MB / 0.571 GB, free: 90.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/0.8941, allocations: 1.439 MB / 0.5724 GB, free: 90.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.839e-06/0.8941, allocations: 3.438 kB / 0.5724 GB, free: 90.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.009018/0.9031, allocations: 4.556 MB / 0.5769 GB, free: 88.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.9032, allocations: 6.625 kB / 0.5769 GB, free: 88.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.704e-05/0.9032, allocations: 3.844 kB / 0.5769 GB, free: 88.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00495/0.9082, allocations: 1.352 MB / 0.5782 GB, free: 88.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002879/0.9111, allocations: 0.5757 MB / 0.5788 GB, free: 88.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02113/0.9322, allocations: 19.24 MB / 0.5976 GB, free: 73.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003581/0.9358, allocations: 170.1 kB / 0.5977 GB, free: 73.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003999/0.9363, allocations: 124.1 kB / 0.5979 GB, free: 73.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (314): * Single equations (assignments): 305 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 51,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.0006272/0.9369, allocations: 271.3 kB / 0.5981 GB, free: 73.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005385/0.9374, allocations: 267.6 kB / 0.5984 GB, free: 73.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00953/0.947, allocations: 4.6 MB / 0.6029 GB, free: 69.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008026/0.955, allocations: 4.022 MB / 0.6068 GB, free: 66.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.9551, allocations: 4 kB / 0.6068 GB, free: 66.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.42e-05/0.9551, allocations: 17.72 kB / 0.6068 GB, free: 66.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01597/0.9711, allocations: 9.765 MB / 0.6163 GB, free: 58.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.9712, allocations: 4 kB / 0.6163 GB, free: 58.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002409/0.9736, allocations: 0.4976 MB / 0.6168 GB, free: 57.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00502/0.9786, allocations: 1.386 MB / 0.6182 GB, free: 56.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003021/0.9789, allocations: 78.92 kB / 0.6183 GB, free: 56.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01847/0.9974, allocations: 17.68 MB / 0.6355 GB, free: 39.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0518/1.049, allocations: 27.24 MB / 0.6621 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01201/1.061, allocations: 6.686 MB / 0.6687 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001572/1.063, allocations: 0.6929 MB / 0.6693 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004046/1.063, allocations: 81.11 kB / 0.6694 GB, free: 6.004 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001997/1.065, allocations: 159.9 kB / 0.6696 GB, free: 5.848 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006619/1.066, allocations: 271 kB / 0.6698 GB, free: 5.582 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002057/1.066, allocations: 104 kB / 0.6699 GB, free: 5.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001562/1.068, allocations: 1.258 MB / 0.6711 GB, free: 4.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.068, allocations: 4 kB / 0.6712 GB, free: 4.227 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003238/1.071, allocations: 1.077 MB / 0.6722 GB, free: 3.152 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (256): * Single equations (assignments): 249 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,4 53} Notification: Performance of Backend phase and start with SimCode phase: time 0.00114/1.072, allocations: 434.2 kB / 0.6726 GB, free: 2.773 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007193/1.079, allocations: 4.532 MB / 0.677 GB, free: 14.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.641e-05/1.08, allocations: 4 kB / 0.677 GB, free: 14.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005059/1.085, allocations: 3.119 MB / 0.6801 GB, free: 10.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/1.086, allocations: 306.2 kB / 0.6804 GB, free: 10.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/1.097, allocations: 6.044 MB / 0.6863 GB, free: 4.516 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001574/1.099, allocations: 1.839 MB / 0.6881 GB, free: 2.633 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002173/1.101, allocations: 328.7 kB / 0.6884 GB, free: 2.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007779/1.101, allocations: 182.8 kB / 0.6886 GB, free: 2.164 MB / 426.7 MB Notification: Performance of SimCode: time 2.575e-06/1.102, allocations: 0 / 0.6886 GB, free: 2.164 MB / 426.7 MB Notification: Performance of Templates: time 0.2841/1.386, allocations: 65.17 MB / 0.7522 GB, free: 86.24 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonQuasiStationary/ComparisonQuasiStationary.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches