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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.286/1.286, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.000908/0.000908, allocations: 90.75 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002729/0.000273, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2531, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1298/0.383, allocations: 95.26 MB / 496.8 MB, free: 1.137 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.3833, allocations: 87.95 kB / 496.9 MB, free: 1.051 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4303/0.8136, allocations: 51.36 MB / 0.5354 GB, free: 78.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.8137, allocations: 0 / 0.5354 GB, free: 78.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000102/0.8138, allocations: 48 kB / 0.5355 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.005073/0.8188, allocations: 2.62 MB / 0.5381 GB, free: 75.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.8189, allocations: 12.03 kB / 0.5381 GB, free: 75.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003743/0.8193, allocations: 287.4 kB / 0.5383 GB, free: 75.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003624/0.8196, allocations: 293.1 kB / 0.5386 GB, free: 75.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.8218, allocations: 1.341 MB / 0.5399 GB, free: 73.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.064e-05/0.8219, allocations: 160.1 kB / 0.5401 GB, free: 73.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002344/0.8221, allocations: 203.9 kB / 0.5403 GB, free: 73.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003335/0.8255, allocations: 1.912 MB / 0.5421 GB, free: 71.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.851e-05/0.8255, allocations: 4 kB / 0.5421 GB, free: 71.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001662/0.8257, allocations: 88 kB / 0.5422 GB, free: 71.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.65e-05/0.8257, allocations: 48 kB / 0.5423 GB, free: 71.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003527/0.8293, allocations: 2.007 MB / 0.5442 GB, free: 69.28 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01125/0.8405, allocations: 7.602 MB / 0.5517 GB, free: 61.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003087/0.8436, allocations: 2.364 MB / 0.554 GB, free: 58.99 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.8438, allocations: 33.97 kB / 0.554 GB, free: 58.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.8438, allocations: 56.56 kB / 0.5541 GB, free: 58.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=240): time 3.367e-06/0.8439, allocations: 4 kB / 0.5541 GB, free: 58.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=375): time 0.06004/0.9039, allocations: 19.03 MB / 0.5726 GB, free: 39.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.09376/0.9977, allocations: 34.49 MB / 0.6063 GB, free: 4.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002842/1.001, allocations: 1.636 MB / 0.6079 GB, free: 2.883 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007046/1.001, allocations: 89.7 kB / 0.608 GB, free: 2.789 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005803/1.002, allocations: 0.966 MB / 0.6089 GB, free: 1.809 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/1.003, allocations: 1.247 MB / 0.6102 GB, free: 0.543 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003111/1.003, allocations: 64 kB / 0.6102 GB, free: 492 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/1.003, allocations: 433.2 kB / 0.6106 GB, free: 52 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003111/1.007, allocations: 1.354 MB / 0.612 GB, free: 14.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0032/1.01, allocations: 1.641 MB / 0.6136 GB, free: 13.01 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003217/1.013, allocations: 1.528 MB / 0.6151 GB, free: 11.47 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/1.013, allocations: 0 / 0.6151 GB, free: 11.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.01186/1.025, allocations: 4.768 MB / 0.6197 GB, free: 6.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/1.025, allocations: 10.81 kB / 0.6197 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/1.025, allocations: 4 kB / 0.6197 GB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005743/1.031, allocations: 1.395 MB / 0.6211 GB, free: 5.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003334/1.034, allocations: 0.5734 MB / 0.6217 GB, free: 4.656 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02667/1.061, allocations: 19.61 MB / 0.6408 GB, free: 108 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003244/1.064, allocations: 172 kB / 0.641 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006425/1.065, allocations: 116 kB / 0.6411 GB, free: 15.82 MB / 426.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.001588/1.066, allocations: 0.589 MB / 0.6417 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005696/1.067, allocations: 264.8 kB / 0.6419 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01198/1.079, allocations: 4.801 MB / 0.6466 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01066/1.09, allocations: 4.205 MB / 0.6507 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/1.09, allocations: 8 kB / 0.6507 GB, free: 5.836 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.41e-05/1.09, allocations: 19.92 kB / 0.6507 GB, free: 5.816 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2521/1.342, allocations: 9.881 MB / 0.6604 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.619e-05/1.342, allocations: 4.625 kB / 0.6604 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002678/1.345, allocations: 0.4891 MB / 0.6609 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005598/1.35, allocations: 1.421 MB / 0.6622 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006093/1.351, allocations: 75.78 kB / 0.6623 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02123/1.372, allocations: 18.15 MB / 0.68 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.08076/1.453, allocations: 30.55 MB / 0.7099 GB, free: 87.56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01385/1.467, allocations: 6.95 MB / 0.7167 GB, free: 81.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001948/1.469, allocations: 0.6887 MB / 0.7173 GB, free: 80.42 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004776/1.469, allocations: 75.52 kB / 0.7174 GB, free: 80.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002028/1.471, allocations: 159.6 kB / 0.7176 GB, free: 80.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006747/1.472, allocations: 283.3 kB / 0.7178 GB, free: 80.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/1.472, allocations: 106.6 kB / 0.7179 GB, free: 79.96 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001648/1.474, allocations: 1.273 MB / 0.7192 GB, free: 78.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.474, allocations: 4 kB / 0.7192 GB, free: 78.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003582/1.477, allocations: 1.072 MB / 0.7202 GB, free: 77.8 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.015/1.492, allocations: 8.778 MB / 0.7288 GB, free: 69.67 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008235/1.501, allocations: 4.761 MB / 0.7334 GB, free: 65.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/1.501, allocations: 3.469 kB / 0.7334 GB, free: 65.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004969/1.506, allocations: 3.258 MB / 0.7366 GB, free: 62.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001925/1.508, allocations: 320.7 kB / 0.7369 GB, free: 61.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03361/1.541, allocations: 23.07 MB / 0.7595 GB, free: 39.03 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/1.543, allocations: 1.838 MB / 0.7613 GB, free: 37.15 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002017/1.545, allocations: 324.8 kB / 0.7616 GB, free: 36.86 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001378/1.546, allocations: 1.096 MB / 0.7626 GB, free: 35.77 MB / 426.7 MB Notification: Performance of SimCode: time 8.22e-07/1.546, allocations: 0 / 0.7626 GB, free: 35.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3356/1.882, allocations: 85.95 MB / 0.8466 GB, free: 135.8 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/1.882, allocations: 279.9 kB / 0.8468 GB, free: 135.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.555/7.437, allocations: 2.969 kB / 0.8468 GB, free: 135.4 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat does not exist to compare? outputFormat=mat