Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|comparisonWithFEA.y.1.|comparisonWithFEA.y.2.|comparisonWithFEA.y.3.|advancedFeed_x.v|advancedSolenoid.g_mFeArm.Phi|advancedSolenoid.L_statTot|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.x|advancedSolenoid.armature.flange_a.f|advancedSolenoid.coil1.i|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.i|advancedSolenoid.coil2.Phi|advancedSolenoid.g_mLeak1.port_p.Phi|advancedSolenoid.g_mLeak2.port_p.Phi|advancedSolenoid.g_mLeak3.port_p.Phi|advancedSolenoid.g_mLeakWork.port_p.Phi|simpleFeed_x.v|simpleSolenoid.armature.flange_a.f|simpleSolenoid.g_mFeArm.Phi|simpleSolenoid.x|simpleSolenoid.coil.i|simpleSolenoid.coil.Phi|simpleSolenoid.coil.L_stat|simpleSolenoid.g_mLeak1.port_p.Phi|simpleSolenoid.g_mLeak2.port_p.Phi|simpleSolenoid.g_mLeakWork.port_p.Phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|comparisonWithFEA.y.1.|comparisonWithFEA.y.2.|comparisonWithFEA.y.3.|advancedFeed_x.v|advancedSolenoid.g_mFeArm.Phi|advancedSolenoid.L_statTot|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.x|advancedSolenoid.armature.flange_a.f|advancedSolenoid.coil1.i|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.i|advancedSolenoid.coil2.Phi|advancedSolenoid.g_mLeak1.port_p.Phi|advancedSolenoid.g_mLeak2.port_p.Phi|advancedSolenoid.g_mLeak3.port_p.Phi|advancedSolenoid.g_mLeakWork.port_p.Phi|simpleFeed_x.v|simpleSolenoid.armature.flange_a.f|simpleSolenoid.g_mFeArm.Phi|simpleSolenoid.x|simpleSolenoid.coil.i|simpleSolenoid.coil.Phi|simpleSolenoid.coil.L_stat|simpleSolenoid.g_mLeak1.port_p.Phi|simpleSolenoid.g_mLeak2.port_p.Phi|simpleSolenoid.g_mLeakWork.port_p.Phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009274/0.0009275, allocations: 180.1 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008749/0.0008749, allocations: 94.55 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002453/0.0002454, allocations: 15.94 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2021, allocations: 50.4 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.104/0.3062, allocations: 95.27 MB / 496.8 MB, free: 1.172 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.3065, allocations: 87.95 kB / 496.9 MB, free: 1.086 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2953/0.6017, allocations: 51.36 MB / 0.5354 GB, free: 78.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.6018, allocations: 0 / 0.5354 GB, free: 78.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001795/0.602, allocations: 56 kB / 0.5354 GB, free: 78.45 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.006483/0.6085, allocations: 2.608 MB / 0.538 GB, free: 75.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.6085, allocations: 12.03 kB / 0.538 GB, free: 75.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008164/0.6093, allocations: 292.4 kB / 0.5383 GB, free: 75.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/0.6121, allocations: 1.337 MB / 0.5396 GB, free: 74.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.083e-05/0.6122, allocations: 164.1 kB / 0.5397 GB, free: 73.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002805/0.6125, allocations: 207.9 kB / 0.5399 GB, free: 73.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003389/0.6159, allocations: 1.908 MB / 0.5418 GB, free: 71.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.581e-05/0.616, allocations: 0 / 0.5418 GB, free: 71.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001656/0.6161, allocations: 91.98 kB / 0.5419 GB, free: 71.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.6162, allocations: 52 kB / 0.5419 GB, free: 71.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003514/0.6197, allocations: 2.007 MB / 0.5439 GB, free: 69.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.6303, allocations: 7.594 MB / 0.5513 GB, free: 61.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003009/0.6333, allocations: 2.368 MB / 0.5536 GB, free: 59.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001101/0.6335, allocations: 37.91 kB / 0.5536 GB, free: 59.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.6335, allocations: 56.56 kB / 0.5537 GB, free: 59.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=240): time 4.538e-06/0.6335, allocations: 0 / 0.5537 GB, free: 59.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=375): time 0.05854/0.6921, allocations: 19.03 MB / 0.5723 GB, free: 40 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.09509/0.7872, allocations: 34.49 MB / 0.606 GB, free: 4.836 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002281/0.7895, allocations: 1.64 MB / 0.6076 GB, free: 3.195 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00056/0.7901, allocations: 89.64 kB / 0.6076 GB, free: 3.102 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004794/0.7906, allocations: 0.9699 MB / 0.6086 GB, free: 2.117 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009003/0.7915, allocations: 1.243 MB / 0.6098 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001887/0.7917, allocations: 68 kB / 0.6099 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.7919, allocations: 433.2 kB / 0.6103 GB, free: 368 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/0.7946, allocations: 1.35 MB / 0.6116 GB, free: 15.01 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003047/0.7977, allocations: 1.645 MB / 0.6132 GB, free: 13.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/0.8006, allocations: 1.528 MB / 0.6147 GB, free: 11.78 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.8006, allocations: 0 / 0.6147 GB, free: 11.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.01093/0.8115, allocations: 4.768 MB / 0.6194 GB, free: 6.969 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.471e-05/0.8116, allocations: 10.81 kB / 0.6194 GB, free: 6.961 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/0.8116, allocations: 4 kB / 0.6194 GB, free: 6.957 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005759/0.8174, allocations: 1.391 MB / 0.6207 GB, free: 5.543 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003294/0.8207, allocations: 0.5773 MB / 0.6213 GB, free: 4.965 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02522/0.846, allocations: 19.6 MB / 0.6404 GB, free: 428 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003244/0.8492, allocations: 163.9 kB / 0.6406 GB, free: 264 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004726/0.8497, allocations: 120 kB / 0.6407 GB, free: 144 kB / 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (316): * Single equations (assignments): 307 * 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%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 54,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.001443/0.8512, allocations: 0.5929 MB / 0.6413 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005096/0.8517, allocations: 264.8 kB / 0.6415 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/0.8626, allocations: 4.801 MB / 0.6462 GB, free: 10.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009647/0.8723, allocations: 4.201 MB / 0.6503 GB, free: 6.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.8723, allocations: 7.938 kB / 0.6503 GB, free: 6.152 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-05/0.8724, allocations: 19.92 kB / 0.6504 GB, free: 6.133 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2175/1.09, allocations: 9.89 MB / 0.66 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.941e-05/1.09, allocations: 3.844 kB / 0.66 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002817/1.093, allocations: 0.4909 MB / 0.6605 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005557/1.098, allocations: 1.416 MB / 0.6619 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003985/1.099, allocations: 78.62 kB / 0.662 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02013/1.119, allocations: 18.15 MB / 0.6797 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.08221/1.201, allocations: 30.55 MB / 0.7095 GB, free: 87.85 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01271/1.214, allocations: 6.943 MB / 0.7163 GB, free: 81.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/1.215, allocations: 0.6922 MB / 0.717 GB, free: 80.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003262/1.216, allocations: 71.95 kB / 0.717 GB, free: 80.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00196/1.218, allocations: 156.8 kB / 0.7172 GB, free: 80.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000574/1.218, allocations: 285.6 kB / 0.7175 GB, free: 80.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001824/1.218, allocations: 93.67 kB / 0.7176 GB, free: 80.26 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001468/1.22, allocations: 1.278 MB / 0.7188 GB, free: 79.17 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.22, allocations: 3.172 kB / 0.7188 GB, free: 79.17 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00269/1.223, allocations: 1.081 MB / 0.7199 GB, free: 78.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 250 * 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%) 4,(1,100.0%) 2,(1,100.0%) 5} * Non-linear torn systems: 2 {4 42,5 55} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009699/1.224, allocations: 460.2 kB / 0.7203 GB, free: 77.83 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006516/1.23, allocations: 4.769 MB / 0.725 GB, free: 73.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/1.23, allocations: 4 kB / 0.725 GB, free: 73.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004274/1.234, allocations: 3.257 MB / 0.7281 GB, free: 70.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/1.236, allocations: 311.4 kB / 0.7284 GB, free: 70.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/1.247, allocations: 8.226 MB / 0.7365 GB, free: 62.44 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001265/1.248, allocations: 1.836 MB / 0.7383 GB, free: 60.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002104/1.25, allocations: 335.9 kB / 0.7386 GB, free: 60.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007126/1.251, allocations: 170.9 kB / 0.7387 GB, free: 60.61 MB / 426.7 MB Notification: Performance of SimCode: time 8.81e-07/1.251, allocations: 0 / 0.7387 GB, free: 60.61 MB / 426.7 MB Notification: Performance of Templates: time 0.0794/1.33, allocations: 63.27 MB / 0.8005 GB, free: 14.72 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonQuasiStatic/ComparisonQuasiStatic.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches