Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001564/0.001564, allocations: 200.7 kB / 18.1 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 226.5 MB / 245.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007351/0.0007352, allocations: 96.34 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.000264, allocations: 8 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2007, allocations: 51.29 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.3052, allocations: 96.91 MB / 0.4944 GB, free: 10.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.3054, allocations: 94.72 kB / 0.4945 GB, free: 10.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3507/0.6561, allocations: 80.11 MB / 0.5727 GB, free: 38.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6562, allocations: 0 / 0.5727 GB, free: 38.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0009128/0.6571, allocations: 127.9 kB / 0.5729 GB, free: 38.65 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.01302/0.6701, allocations: 6.861 MB / 0.5796 GB, free: 31.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.6702, allocations: 8.031 kB / 0.5796 GB, free: 31.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002422/0.6726, allocations: 0.9079 MB / 0.5805 GB, free: 30.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007909/0.6805, allocations: 4.026 MB / 0.5844 GB, free: 26.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.6807, allocations: 156.5 kB / 0.5845 GB, free: 26.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005879/0.6813, allocations: 204.4 kB / 0.5847 GB, free: 26.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004751/0.6861, allocations: 2.147 MB / 0.5868 GB, free: 24.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.662e-05/0.6862, allocations: 8.094 kB / 0.5868 GB, free: 24.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002791/0.6865, allocations: 87.94 kB / 0.5869 GB, free: 24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-05/0.6865, allocations: 48 kB / 0.587 GB, free: 23.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004024/0.6905, allocations: 1.997 MB / 0.5889 GB, free: 21.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01697/0.7075, allocations: 10.13 MB / 0.5988 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0039/0.7115, allocations: 2.403 MB / 0.6012 GB, free: 9.113 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002427/0.7139, allocations: 1.405 MB / 0.6025 GB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001465/0.7141, allocations: 42.28 kB / 0.6026 GB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002328/0.7165, allocations: 1.202 MB / 0.6037 GB, free: 6.422 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 6.312e-06/0.7165, allocations: 0 / 0.6037 GB, free: 6.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=378): time 0.05914/0.7756, allocations: 20.92 MB / 0.6242 GB, free: 1.188 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02992/0.8056, allocations: 13.15 MB / 0.637 GB, free: 3.672 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1279/0.9335, allocations: 14.57 MB / 0.6513 GB, free: 5.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006101/0.9341, allocations: 89.7 kB / 0.6513 GB, free: 5.066 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003967/0.9381, allocations: 3.729 MB / 0.655 GB, free: 1.324 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001372/0.9395, allocations: 1.247 MB / 0.6562 GB, free: 60 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002389/0.9397, allocations: 72.17 kB / 0.6563 GB, free: 15.98 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.9399, allocations: 437.2 kB / 0.6567 GB, free: 15.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002658/0.9426, allocations: 1.303 MB / 0.658 GB, free: 14.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002821/0.9454, allocations: 1.658 MB / 0.6596 GB, free: 12.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005639/0.9511, allocations: 3.078 MB / 0.6626 GB, free: 9.395 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.9511, allocations: 0 / 0.6626 GB, free: 9.395 MB / 442.7 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.01211/0.9633, allocations: 5.348 MB / 0.6678 GB, free: 3.996 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.9633, allocations: 8 kB / 0.6678 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.9633, allocations: 4 kB / 0.6678 GB, free: 3.984 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005507/0.9689, allocations: 1.444 MB / 0.6692 GB, free: 2.512 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003085/0.972, allocations: 0.5617 MB / 0.6698 GB, free: 1.949 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.201/1.173, allocations: 22.09 MB / 0.6913 GB, free: 99.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003711/1.177, allocations: 176.1 kB / 0.6915 GB, free: 99.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004943/1.177, allocations: 121.2 kB / 0.6916 GB, free: 99.59 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.004223/1.181, allocations: 2.187 MB / 0.6938 GB, free: 99.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001667/1.183, allocations: 0.8512 MB / 0.6946 GB, free: 99.48 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/1.194, allocations: 5.49 MB / 0.7 GB, free: 98.99 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.397e-05/1.194, allocations: 36.81 kB / 0.7 GB, free: 98.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.67e-05/1.194, allocations: 3.375 kB / 0.7 GB, free: 98.99 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-05/1.194, allocations: 22.17 kB / 0.7 GB, free: 98.99 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02325/1.218, allocations: 13.85 MB / 0.7135 GB, free: 93.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-05/1.218, allocations: 2.688 kB / 0.7135 GB, free: 93.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/1.22, allocations: 495.2 kB / 0.714 GB, free: 93.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004709/1.225, allocations: 1.365 MB / 0.7154 GB, free: 93.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003456/1.225, allocations: 81.08 kB / 0.7154 GB, free: 93.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0188/1.244, allocations: 20.18 MB / 0.7351 GB, free: 77.35 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02175/1.266, allocations: 11.56 MB / 0.7464 GB, free: 69.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01292/1.279, allocations: 7.288 MB / 0.7535 GB, free: 62.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002771/1.281, allocations: 1.594 MB / 0.7551 GB, free: 61.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008355/1.282, allocations: 90.48 kB / 0.7552 GB, free: 61.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002235/1.284, allocations: 158.7 kB / 0.7553 GB, free: 61.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006057/1.285, allocations: 285.5 kB / 0.7556 GB, free: 60.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001796/1.285, allocations: 98.78 kB / 0.7557 GB, free: 60.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01304/1.298, allocations: 10.88 MB / 0.7663 GB, free: 51.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.298, allocations: 0 / 0.7663 GB, free: 51.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005072/1.303, allocations: 1.658 MB / 0.7679 GB, free: 49.8 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.001218/1.305, allocations: 0.524 MB / 0.7685 GB, free: 49.49 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007194/1.312, allocations: 4.942 MB / 0.7733 GB, free: 44.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/1.312, allocations: 4.5 kB / 0.7733 GB, free: 44.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004512/1.316, allocations: 3.41 MB / 0.7766 GB, free: 41.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007168/1.324, allocations: 0.5566 MB / 0.7772 GB, free: 41.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03039/1.354, allocations: 21.21 MB / 0.7979 GB, free: 21.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006685/1.361, allocations: 4.027 MB / 0.8018 GB, free: 18.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003574/1.364, allocations: 0.8275 MB / 0.8026 GB, free: 18.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/1.366, allocations: 343.7 kB / 0.8029 GB, free: 17.77 MB / 442.7 MB Notification: Performance of SimCode: time 7.31e-07/1.366, allocations: 8 kB / 0.8029 GB, free: 17.77 MB / 442.7 MB Notification: Performance of Templates: time 0.4836/1.849, allocations: 81.32 MB / 0.8824 GB, free: 121.1 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches