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.0009775/0.0009775, allocations: 194.7 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 226.6 MB / 244.3 MB, free: 6.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009449/0.0009446, allocations: 113.2 kB / 296.4 MB, free: 6.797 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003125, allocations: 4 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2505, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.006921/0.2574, allocations: 9.765 MB / 417.3 MB, free: 18.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004362/0.2618, allocations: 3.656 MB / 420.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007172/0.2625, allocations: 35.88 kB / 421 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004308/0.2669, allocations: 8.114 MB / 429.1 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003733/0.2706, allocations: 4.563 MB / 433.6 MB, free: 1.641 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.2724, allocations: 0.5799 MB / 434.2 MB, free: 1.062 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005732/0.2782, allocations: 4.444 MB / 438.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001459/0.2797, allocations: 0.6839 MB / 439.3 MB, free: 11.89 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004517/0.2842, allocations: 2.517 MB / 441.9 MB, free: 9.371 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005588/0.2898, allocations: 4.14 MB / 446 MB, free: 5.223 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005632/0.2904, allocations: 147.9 kB / 446.1 MB, free: 5.078 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008732/0.2913, allocations: 172 kB / 446.3 MB, free: 4.91 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001408/0.2927, allocations: 1.732 MB / 448 MB, free: 3.172 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.2938, allocations: 1.072 MB / 449.1 MB, free: 2.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004647/0.2984, allocations: 5.461 MB / 454.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.2985, allocations: 0 / 454.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2985, allocations: 4 kB / 454.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001516/0.2986, allocations: 0 / 454.6 MB, free: 12.61 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.01158/0.3102, allocations: 6.691 MB / 461.3 MB, free: 5.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.3103, allocations: 8.031 kB / 461.3 MB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001779/0.3121, allocations: 0.8952 MB / 462.2 MB, free: 4.906 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004056/0.3161, allocations: 2.784 MB / 465 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.3163, allocations: 160.1 kB / 465.1 MB, free: 1.895 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002952/0.3166, allocations: 211.9 kB / 465.3 MB, free: 1.688 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004088/0.3207, allocations: 2.112 MB / 467.4 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.573e-05/0.3207, allocations: 4 kB / 467.4 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001765/0.3209, allocations: 88 kB / 467.5 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/0.321, allocations: 55.94 kB / 467.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003879/0.3248, allocations: 1.93 MB / 469.5 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0148/0.3397, allocations: 8.97 MB / 478.5 MB, free: 4.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003801/0.3435, allocations: 2.348 MB / 480.8 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002517/0.3461, allocations: 1.371 MB / 482.2 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001188/0.3462, allocations: 46.27 kB / 482.2 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002108/0.3483, allocations: 1.171 MB / 483.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=242): time 4.047e-06/0.3483, allocations: 0 / 483.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.06071/0.409, allocations: 22.96 MB / 0.4945 GB, free: 7.898 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2505/0.6596, allocations: 13.17 MB / 0.5074 GB, free: 84.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01493/0.6746, allocations: 14.93 MB / 0.5219 GB, free: 78.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005529/0.6752, allocations: 81.7 kB / 0.522 GB, free: 78.22 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002419/0.6776, allocations: 3.737 MB / 0.5257 GB, free: 74.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008654/0.6785, allocations: 1.216 MB / 0.5269 GB, free: 74.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.6787, allocations: 68 kB / 0.5269 GB, free: 73.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.6788, allocations: 434.1 kB / 0.5273 GB, free: 73.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/0.681, allocations: 1.257 MB / 0.5286 GB, free: 72.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002184/0.6832, allocations: 1.633 MB / 0.5302 GB, free: 70.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002335/0.6855, allocations: 1.456 MB / 0.5316 GB, free: 69.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.6856, allocations: 3.984 kB / 0.5316 GB, free: 69.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009548/0.6951, allocations: 5.216 MB / 0.5367 GB, free: 63.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.6952, allocations: 12.73 kB / 0.5367 GB, free: 63.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.6952, allocations: 4 kB / 0.5367 GB, free: 63.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004882/0.7001, allocations: 1.397 MB / 0.5381 GB, free: 62.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002439/0.7025, allocations: 0.5498 MB / 0.5386 GB, free: 61.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02201/0.7245, allocations: 21.89 MB / 0.56 GB, free: 39.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0035/0.7281, allocations: 145 kB / 0.5601 GB, free: 38.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004231/0.7285, allocations: 116 kB / 0.5602 GB, free: 38.77 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.003374/0.7319, allocations: 2.184 MB / 0.5624 GB, free: 36.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/0.7331, allocations: 0.8176 MB / 0.5632 GB, free: 35.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01067/0.7437, allocations: 5.242 MB / 0.5683 GB, free: 30.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.221e-05/0.7438, allocations: 39.95 kB / 0.5683 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.999e-05/0.7439, allocations: 4 kB / 0.5683 GB, free: 30.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.342e-05/0.7439, allocations: 15.94 kB / 0.5683 GB, free: 30.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01906/0.763, allocations: 11.11 MB / 0.5792 GB, free: 19.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.826e-05/0.763, allocations: 0 / 0.5792 GB, free: 19.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002379/0.7654, allocations: 475.4 kB / 0.5796 GB, free: 18.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005063/0.7705, allocations: 1.348 MB / 0.5809 GB, free: 17.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003154/0.7708, allocations: 75.97 kB / 0.581 GB, free: 17.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0199/0.7907, allocations: 20 MB / 0.6006 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02541/0.8162, allocations: 11.56 MB / 0.6118 GB, free: 324 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01469/0.8309, allocations: 6.968 MB / 0.6186 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002043/0.833, allocations: 0.756 MB / 0.6194 GB, free: 8.473 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001365/0.8344, allocations: 68.19 kB / 0.6194 GB, free: 8.406 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003145/0.8376, allocations: 130.1 kB / 0.6196 GB, free: 8.281 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008952/0.8385, allocations: 271 kB / 0.6198 GB, free: 8.012 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002439/0.8388, allocations: 95.97 kB / 0.6199 GB, free: 7.918 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01646/0.8552, allocations: 11.15 MB / 0.6308 GB, free: 12.82 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.8553, allocations: 0 / 0.6308 GB, free: 12.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00689/0.8622, allocations: 1.081 MB / 0.6319 GB, free: 11.74 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.001915/0.8642, allocations: 0.4996 MB / 0.6324 GB, free: 11.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01078/0.875, allocations: 4.82 MB / 0.6371 GB, free: 6.445 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/0.875, allocations: 0 / 0.6371 GB, free: 6.445 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006263/0.8813, allocations: 3.289 MB / 0.6403 GB, free: 3.047 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003992/0.8853, allocations: 0.5228 MB / 0.6408 GB, free: 2.527 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03551/0.9208, allocations: 19.88 MB / 0.6602 GB, free: 14.59 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006274/0.9272, allocations: 4.014 MB / 0.6641 GB, free: 10.52 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/0.9288, allocations: 191.4 kB / 0.6643 GB, free: 10.34 MB / 458.7 MB Notification: Performance of SimCode: time 1.213e-06/0.9288, allocations: 0 / 0.6643 GB, free: 10.34 MB / 458.7 MB Notification: Performance of Templates: time 1.65/2.579, allocations: 0.541 GB / 1.205 GB, free: 154 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