Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001565/0.001565, allocations: 186.1 kB / 16.4 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.966/1.966, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001137, allocations: 91.02 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004902/0.0004903, allocations: 12 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3293, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1472/0.4766, allocations: 92.09 MB / 466.7 MB, free: 4.633 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003299/0.4769, allocations: 95.95 kB / 466.8 MB, free: 4.539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4882/0.9651, allocations: 50.04 MB / 0.5047 GB, free: 95.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.9652, allocations: 3.328 kB / 0.5047 GB, free: 95.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001863/0.9654, allocations: 55.53 kB / 0.5048 GB, free: 95.2 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.01066/0.976, allocations: 2.61 MB / 0.5074 GB, free: 93.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.9761, allocations: 10.09 kB / 0.5074 GB, free: 93.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001134/0.9773, allocations: 288.4 kB / 0.5076 GB, free: 93.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.9783, allocations: 292.1 kB / 0.5079 GB, free: 93.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004538/0.9829, allocations: 1.347 MB / 0.5092 GB, free: 93.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002259/0.9831, allocations: 162.3 kB / 0.5094 GB, free: 93.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008759/0.984, allocations: 205.5 kB / 0.5096 GB, free: 93.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007169/0.9912, allocations: 1.909 MB / 0.5114 GB, free: 93.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001147/0.9914, allocations: 3.188 kB / 0.5114 GB, free: 93.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000468/0.9919, allocations: 82.78 kB / 0.5115 GB, free: 93.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.554e-05/0.992, allocations: 50.09 kB / 0.5116 GB, free: 93.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008208/1, allocations: 2.006 MB / 0.5135 GB, free: 92.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02657/1.027, allocations: 7.607 MB / 0.521 GB, free: 88.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008982/1.036, allocations: 2.361 MB / 0.5233 GB, free: 87.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004532/1.036, allocations: 39.33 kB / 0.5233 GB, free: 87.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.605e-05/1.036, allocations: 57.97 kB / 0.5234 GB, free: 87.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=240): time 8.175e-06/1.036, allocations: 0 / 0.5234 GB, free: 87.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=375): time 0.1289/1.165, allocations: 19.03 MB / 0.5419 GB, free: 71.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1716/1.337, allocations: 34.5 MB / 0.5756 GB, free: 36.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003699/1.341, allocations: 1.643 MB / 0.5772 GB, free: 34.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007244/1.342, allocations: 92.02 kB / 0.5773 GB, free: 34.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007235/1.342, allocations: 0.8987 MB / 0.5782 GB, free: 33.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001545/1.344, allocations: 1.234 MB / 0.5794 GB, free: 32.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004453/1.344, allocations: 71.91 kB / 0.5795 GB, free: 32.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002079/1.345, allocations: 442 kB / 0.5799 GB, free: 31.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004658/1.349, allocations: 1.342 MB / 0.5812 GB, free: 30.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005237/1.355, allocations: 1.641 MB / 0.5828 GB, free: 28.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005324/1.36, allocations: 1.543 MB / 0.5843 GB, free: 27.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.82e-05/1.36, allocations: 0 / 0.5843 GB, free: 27.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.01898/1.379, allocations: 4.691 MB / 0.5889 GB, free: 22.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/1.379, allocations: 7.984 kB / 0.5889 GB, free: 22.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/1.379, allocations: 4 kB / 0.5889 GB, free: 22.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009578/1.389, allocations: 1.382 MB / 0.5903 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005596/1.394, allocations: 0.5773 MB / 0.5908 GB, free: 20.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03808/1.432, allocations: 19.62 MB / 0.61 GB, free: 160 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004906/1.437, allocations: 176.4 kB / 0.6102 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008278/1.438, allocations: 108 kB / 0.6103 GB, free: 15.88 MB / 394.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.002551/1.441, allocations: 0.5981 MB / 0.6108 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009837/1.442, allocations: 264.8 kB / 0.6111 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02143/1.463, allocations: 4.789 MB / 0.6158 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01992/1.483, allocations: 4.208 MB / 0.6199 GB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/1.483, allocations: 0 / 0.6199 GB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000138/1.483, allocations: 27.77 kB / 0.6199 GB, free: 5.883 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03715/1.521, allocations: 9.885 MB / 0.6296 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.566e-05/1.521, allocations: 4 kB / 0.6296 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005279/1.526, allocations: 0.4919 MB / 0.63 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01063/1.537, allocations: 1.413 MB / 0.6314 GB, free: 9.949 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007977/1.538, allocations: 75.97 kB / 0.6315 GB, free: 9.875 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3212/1.859, allocations: 18.14 MB / 0.6492 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1482/2.007, allocations: 30.63 MB / 0.6791 GB, free: 95.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02518/2.032, allocations: 6.957 MB / 0.6859 GB, free: 92.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002609/2.035, allocations: 0.6897 MB / 0.6866 GB, free: 91.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001058/2.036, allocations: 70.83 kB / 0.6867 GB, free: 91.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004266/2.04, allocations: 156.3 kB / 0.6868 GB, free: 91.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001259/2.042, allocations: 284.8 kB / 0.6871 GB, free: 91.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004642/2.042, allocations: 98.7 kB / 0.6872 GB, free: 91.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002929/2.045, allocations: 1.278 MB / 0.6884 GB, free: 91.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.81e-07/2.045, allocations: 0 / 0.6884 GB, free: 91.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005584/2.051, allocations: 1.072 MB / 0.6895 GB, free: 90.69 MB / 410.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.02564/2.076, allocations: 8.785 MB / 0.698 GB, free: 82.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01301/2.089, allocations: 4.77 MB / 0.7027 GB, free: 77.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/2.09, allocations: 0 / 0.7027 GB, free: 77.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008624/2.098, allocations: 3.259 MB / 0.7059 GB, free: 74.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003127/2.101, allocations: 319.3 kB / 0.7062 GB, free: 74.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06072/2.162, allocations: 23.15 MB / 0.7288 GB, free: 52.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002115/2.164, allocations: 1.834 MB / 0.7306 GB, free: 50.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003457/2.168, allocations: 1.111 MB / 0.7317 GB, free: 49.39 MB / 410.7 MB Notification: Performance of SimCode: time 1.272e-06/2.168, allocations: 0 / 0.7317 GB, free: 49.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.576/6.743, allocations: 139.5 MB / 0.8679 GB, free: 106.7 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat