Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001454/0.001454, allocations: 202.5 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 226.5 MB / 245.4 MB, free: 8.125 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000827/0.000827, allocations: 95.36 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.0002259, allocations: 7.984 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1899, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1006/0.2905, allocations: 96.92 MB / 0.4937 GB, free: 10.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.2908, allocations: 95.94 kB / 0.4938 GB, free: 10.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3493/0.6402, allocations: 80.11 MB / 0.5721 GB, free: 38.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.597e-06/0.6402, allocations: 0 / 0.5721 GB, free: 38.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0009175/0.6411, allocations: 112 kB / 0.5722 GB, free: 38.73 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.01417/0.6553, allocations: 6.866 MB / 0.5789 GB, free: 31.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.6554, allocations: 12.03 kB / 0.5789 GB, free: 31.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00235/0.6578, allocations: 0.9079 MB / 0.5798 GB, free: 30.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00759/0.6654, allocations: 4.018 MB / 0.5837 GB, free: 26.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.6655, allocations: 156.5 kB / 0.5838 GB, free: 26.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003907/0.6659, allocations: 204.4 kB / 0.584 GB, free: 26.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00381/0.6698, allocations: 2.147 MB / 0.5861 GB, free: 24.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.222e-05/0.6698, allocations: 8.094 kB / 0.5861 GB, free: 24.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/0.67, allocations: 91.88 kB / 0.5862 GB, free: 24.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.717e-05/0.67, allocations: 55.98 kB / 0.5863 GB, free: 24.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003695/0.6737, allocations: 1.993 MB / 0.5882 GB, free: 22.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01818/0.692, allocations: 10.13 MB / 0.5981 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003734/0.6957, allocations: 2.403 MB / 0.6005 GB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002297/0.6981, allocations: 1.399 MB / 0.6018 GB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001323/0.6982, allocations: 38.27 kB / 0.6019 GB, free: 7.734 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001915/0.7001, allocations: 1.206 MB / 0.6031 GB, free: 6.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 4.839e-06/0.7001, allocations: 0 / 0.6031 GB, free: 6.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=378): time 0.05647/0.7566, allocations: 20.91 MB / 0.6235 GB, free: 1.266 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03028/0.7869, allocations: 13.16 MB / 0.6363 GB, free: 3.738 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1234/0.9104, allocations: 14.57 MB / 0.6506 GB, free: 5.223 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006999/0.9111, allocations: 85.7 kB / 0.6506 GB, free: 5.133 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005579/0.9167, allocations: 3.725 MB / 0.6543 GB, free: 1.398 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001595/0.9183, allocations: 1.247 MB / 0.6555 GB, free: 136 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005723/0.9189, allocations: 75.94 kB / 0.6556 GB, free: 60 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002559/0.9192, allocations: 441.3 kB / 0.656 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003093/0.9223, allocations: 1.307 MB / 0.6573 GB, free: 14.31 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003277/0.9256, allocations: 1.65 MB / 0.6589 GB, free: 12.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006325/0.9319, allocations: 3.078 MB / 0.6619 GB, free: 9.465 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.932, allocations: 0 / 0.6619 GB, free: 9.465 MB / 442.7 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.01513/0.9471, allocations: 5.359 MB / 0.6671 GB, free: 4.055 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.9472, allocations: 8 kB / 0.6671 GB, free: 4.047 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.9472, allocations: 4 kB / 0.6671 GB, free: 4.043 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005967/0.9532, allocations: 1.436 MB / 0.6685 GB, free: 2.578 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003132/0.9564, allocations: 0.5617 MB / 0.6691 GB, free: 2.016 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2326/1.189, allocations: 22.08 MB / 0.6906 GB, free: 99.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004715/1.194, allocations: 179.2 kB / 0.6908 GB, free: 99.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007871/1.195, allocations: 117 kB / 0.6909 GB, free: 99.55 MB / 442.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 (314): * Single equations (assignments): 305 * 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: 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%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.006499/1.201, allocations: 2.186 MB / 0.6931 GB, free: 99.44 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002584/1.204, allocations: 0.852 MB / 0.6939 GB, free: 99.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01408/1.218, allocations: 5.482 MB / 0.6992 GB, free: 98.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.476e-05/1.218, allocations: 41 kB / 0.6993 GB, free: 98.94 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-05/1.218, allocations: 3.188 kB / 0.6993 GB, free: 98.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.775e-05/1.218, allocations: 24.39 kB / 0.6993 GB, free: 98.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03214/1.25, allocations: 13.86 MB / 0.7128 GB, free: 93.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.584e-05/1.25, allocations: 3.938 kB / 0.7129 GB, free: 93.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002845/1.253, allocations: 490.9 kB / 0.7133 GB, free: 93.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005634/1.259, allocations: 1.361 MB / 0.7146 GB, free: 93.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006812/1.26, allocations: 81.77 kB / 0.7147 GB, free: 93.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02164/1.281, allocations: 20.18 MB / 0.7344 GB, free: 77.31 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02484/1.306, allocations: 11.57 MB / 0.7457 GB, free: 69.53 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0171/1.323, allocations: 7.283 MB / 0.7528 GB, free: 62.73 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003644/1.327, allocations: 1.594 MB / 0.7544 GB, free: 61.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002206/1.329, allocations: 84 kB / 0.7545 GB, free: 61.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003841/1.333, allocations: 157.6 kB / 0.7546 GB, free: 61.01 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/1.334, allocations: 276 kB / 0.7549 GB, free: 60.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002535/1.334, allocations: 103.7 kB / 0.755 GB, free: 60.74 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01894/1.353, allocations: 10.89 MB / 0.7656 GB, free: 51.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.353, allocations: 0 / 0.7656 GB, free: 51.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006049/1.359, allocations: 1.659 MB / 0.7672 GB, free: 49.75 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 50,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.001507/1.361, allocations: 0.5281 MB / 0.7678 GB, free: 49.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008874/1.37, allocations: 4.949 MB / 0.7726 GB, free: 44.78 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/1.37, allocations: 0 / 0.7726 GB, free: 44.78 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00511/1.375, allocations: 3.401 MB / 0.7759 GB, free: 41.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008955/1.384, allocations: 0.5645 MB / 0.7765 GB, free: 41.01 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03328/1.417, allocations: 21.55 MB / 0.7975 GB, free: 21.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006461/1.424, allocations: 4.025 MB / 0.8014 GB, free: 18.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002993/1.427, allocations: 369.9 kB / 0.8018 GB, free: 18.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.373e-06/1.427, allocations: 0 / 0.8018 GB, free: 18.2 MB / 442.7 MB Notification: Performance of Templates: time 1.454/2.881, allocations: 0.5535 GB / 1.355 GB, free: 38.78 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches