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.001639/0.001639, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.6 MB / 244.7 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007844/0.0007842, allocations: 97.33 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002274/0.0002274, allocations: 8 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2112, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.007019/0.2182, allocations: 9.772 MB / 417.8 MB, free: 17.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004464/0.2227, allocations: 3.648 MB / 421.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007209/0.2235, allocations: 35.88 kB / 421.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00459/0.2281, allocations: 8.118 MB / 429.6 MB, free: 6.098 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003589/0.2317, allocations: 4.567 MB / 434.2 MB, free: 1.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.233, allocations: 0.5813 MB / 434.8 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003957/0.237, allocations: 4.479 MB / 439.2 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009876/0.238, allocations: 0.765 MB / 440 MB, free: 11.66 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002455/0.2405, allocations: 2.509 MB / 442.5 MB, free: 9.141 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004418/0.2449, allocations: 4.143 MB / 446.7 MB, free: 4.988 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004812/0.2454, allocations: 144 kB / 446.8 MB, free: 4.848 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006045/0.246, allocations: 176 kB / 447 MB, free: 4.676 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001245/0.2472, allocations: 1.732 MB / 448.7 MB, free: 2.938 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001895/0.2491, allocations: 2.402 MB / 451.1 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004102/0.2533, allocations: 5.461 MB / 456.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.383e-06/0.2533, allocations: 0 / 456.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.2533, allocations: 0 / 456.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001071/0.2534, allocations: 3.938 kB / 456.6 MB, free: 11.03 MB / 330.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.009323/0.2627, allocations: 6.605 MB / 463.2 MB, free: 4.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.2628, allocations: 8.031 kB / 463.2 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00131/0.2641, allocations: 0.8922 MB / 464.1 MB, free: 3.418 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003541/0.2677, allocations: 3.156 MB / 467.2 MB, free: 192 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.2678, allocations: 160.5 kB / 467.4 MB, free: 28 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002764/0.2681, allocations: 212.1 kB / 467.6 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003848/0.2719, allocations: 2.119 MB / 469.7 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.839e-05/0.272, allocations: 4 kB / 469.7 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001795/0.2722, allocations: 84 kB / 469.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.625e-05/0.2722, allocations: 56 kB / 469.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003796/0.276, allocations: 1.934 MB / 471.8 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01333/0.2894, allocations: 8.977 MB / 480.8 MB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003678/0.2931, allocations: 2.346 MB / 483.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00249/0.2956, allocations: 1.381 MB / 484.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001442/0.2958, allocations: 46.27 kB / 484.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002035/0.2978, allocations: 1.175 MB / 485.7 MB, free: 13.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=242): time 4.99e-06/0.2978, allocations: 0 / 485.7 MB, free: 13.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.06457/0.3624, allocations: 23.03 MB / 0.4968 GB, free: 5.922 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2282/0.5906, allocations: 13.18 MB / 0.5097 GB, free: 83.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01429/0.6049, allocations: 14.93 MB / 0.5243 GB, free: 76.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005555/0.6055, allocations: 81.7 kB / 0.5244 GB, free: 76.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002368/0.6079, allocations: 3.734 MB / 0.528 GB, free: 72.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009995/0.6089, allocations: 1.212 MB / 0.5292 GB, free: 72.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002067/0.6091, allocations: 72 kB / 0.5293 GB, free: 72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.6092, allocations: 425.1 kB / 0.5297 GB, free: 71.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002227/0.6115, allocations: 1.263 MB / 0.5309 GB, free: 70.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002268/0.6138, allocations: 1.63 MB / 0.5325 GB, free: 68.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004538/0.6183, allocations: 3.015 MB / 0.5354 GB, free: 65.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.6183, allocations: 0 / 0.5354 GB, free: 65.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01014/0.6285, allocations: 5.224 MB / 0.5405 GB, free: 60.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.6286, allocations: 11.94 kB / 0.5405 GB, free: 60.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.6286, allocations: 4 kB / 0.5405 GB, free: 60.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005109/0.6337, allocations: 1.393 MB / 0.5419 GB, free: 58.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002598/0.6363, allocations: 0.5452 MB / 0.5424 GB, free: 58.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02192/0.6583, allocations: 21.9 MB / 0.5638 GB, free: 35.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003217/0.6615, allocations: 140 kB / 0.564 GB, free: 35.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003369/0.6619, allocations: 112 kB / 0.5641 GB, free: 35.15 MB / 378.7 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 ($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 (309): * Single equations (assignments): 300 * 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%) 3,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 50} Notification: Performance of prepare postOptimizeDAE: time 0.00309/0.665, allocations: 2.184 MB / 0.5662 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008284/0.6658, allocations: 0.8175 MB / 0.567 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01019/0.676, allocations: 5.257 MB / 0.5721 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.812e-05/0.6761, allocations: 36 kB / 0.5722 GB, free: 26.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.966e-05/0.6761, allocations: 7.984 kB / 0.5722 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.743e-05/0.6762, allocations: 19.94 kB / 0.5722 GB, free: 26.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01767/0.6938, allocations: 11.11 MB / 0.583 GB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.464e-05/0.6939, allocations: 0 / 0.583 GB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002255/0.6962, allocations: 479.4 kB / 0.5835 GB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004919/0.7011, allocations: 1.343 MB / 0.5848 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003006/0.7014, allocations: 75.97 kB / 0.5849 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02272/0.7241, allocations: 20 MB / 0.6044 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0263/0.7505, allocations: 11.57 MB / 0.6157 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01616/0.7667, allocations: 6.983 MB / 0.6225 GB, free: 5.582 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/0.7684, allocations: 0.756 MB / 0.6233 GB, free: 4.797 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001042/0.7694, allocations: 64 kB / 0.6233 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002545/0.772, allocations: 130.1 kB / 0.6235 GB, free: 4.609 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007504/0.7728, allocations: 263.4 kB / 0.6237 GB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002614/0.7731, allocations: 99.97 kB / 0.6238 GB, free: 4.254 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01629/0.7894, allocations: 11.15 MB / 0.6347 GB, free: 9.172 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7894, allocations: 0 / 0.6347 GB, free: 9.172 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005191/0.7946, allocations: 1.08 MB / 0.6357 GB, free: 8.094 MB / 426.7 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 (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%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 49,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.001201/0.7959, allocations: 0.5059 MB / 0.6362 GB, free: 7.738 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008258/0.8041, allocations: 4.817 MB / 0.6409 GB, free: 2.801 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.8042, allocations: 0 / 0.6409 GB, free: 2.801 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005334/0.8095, allocations: 3.284 MB / 0.6442 GB, free: 15.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004771/0.8143, allocations: 0.5246 MB / 0.6447 GB, free: 14.89 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02778/0.8421, allocations: 19.88 MB / 0.6641 GB, free: 10.95 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005271/0.8474, allocations: 4.017 MB / 0.668 GB, free: 6.883 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001357/0.8488, allocations: 191.4 kB / 0.6682 GB, free: 6.695 MB / 458.7 MB Notification: Performance of SimCode: time 4.41e-07/0.8488, allocations: 0 / 0.6682 GB, free: 6.695 MB / 458.7 MB Notification: Performance of Templates: time 1.831/2.68, allocations: 0.5406 GB / 1.209 GB, free: 150.6 MB / 474.7 MB 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/jenkins/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