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.002189/0.002189, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00118/0.00118, allocations: 91.23 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.675e-05/2.685e-05, allocations: 0 / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3525, allocations: 47.57 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1475/0.5, allocations: 91.34 MB / 453.8 MB, free: 10.83 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003309/0.5004, allocations: 87.95 kB / 453.9 MB, free: 10.75 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2302/0.7306, allocations: 49.58 MB / 0.4916 GB, free: 9.09 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.7307, allocations: 0 / 0.4916 GB, free: 9.09 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002441/0.7309, allocations: 52 kB / 0.4917 GB, free: 9.039 MB / 395.1 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.01007/0.741, allocations: 2.307 MB / 0.4939 GB, free: 6.672 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.7411, allocations: 8.031 kB / 0.494 GB, free: 6.664 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001295/0.7424, allocations: 296.4 kB / 0.4942 GB, free: 6.371 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004924/0.7473, allocations: 1.337 MB / 0.4955 GB, free: 4.98 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.7475, allocations: 72 kB / 0.4956 GB, free: 4.91 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006809/0.7482, allocations: 116 kB / 0.4957 GB, free: 4.797 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006467/0.7547, allocations: 1.664 MB / 0.4973 GB, free: 3.125 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006172/0.7609, allocations: 1.487 MB / 0.4988 GB, free: 1.59 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-05/0.7611, allocations: 4 kB / 0.4988 GB, free: 1.586 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002525/0.7613, allocations: 4 kB / 0.4988 GB, free: 1.582 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-05/0.7614, allocations: 51.95 kB / 0.4989 GB, free: 1.531 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2935/1.055, allocations: 7.256 MB / 0.5059 GB, free: 99.51 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005958/1.061, allocations: 2.142 MB / 0.508 GB, free: 99.27 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004073/1.065, allocations: 1.217 MB / 0.5092 GB, free: 99.26 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003622/1.065, allocations: 35.5 kB / 0.5093 GB, free: 99.26 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/1.065, allocations: 60.59 kB / 0.5093 GB, free: 99.22 MB / 395.1 MB Notification: Performance of pre-optimization done (n=240): time 5.52e-06/1.065, allocations: 2.875 kB / 0.5093 GB, free: 99.22 MB / 395.1 MB Notification: Performance of matching and sorting (n=372): time 0.0671/1.133, allocations: 12.47 MB / 0.5215 GB, free: 96.44 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/1.133, allocations: 93.44 kB / 0.5216 GB, free: 96.37 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00358/1.136, allocations: 1.498 MB / 0.5231 GB, free: 95.77 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007465/1.137, allocations: 27.02 kB / 0.5231 GB, free: 95.74 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007626/1.138, allocations: 0.8887 MB / 0.5239 GB, free: 95.06 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001657/1.14, allocations: 1.187 MB / 0.5251 GB, free: 94.2 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003683/1.14, allocations: 3.391 kB / 0.5251 GB, free: 94.2 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000224/1.14, allocations: 437.1 kB / 0.5255 GB, free: 93.83 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003536/1.144, allocations: 1.187 MB / 0.5267 GB, free: 93.27 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004053/1.148, allocations: 1.454 MB / 0.5281 GB, free: 92.52 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004154/1.152, allocations: 1.363 MB / 0.5294 GB, free: 91.88 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.833e-05/1.152, allocations: 0 / 0.5294 GB, free: 91.88 MB / 395.1 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.01689/1.169, allocations: 4.137 MB / 0.5335 GB, free: 90.32 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/1.169, allocations: 7.312 kB / 0.5335 GB, free: 90.32 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.841e-05/1.169, allocations: 3.75 kB / 0.5335 GB, free: 90.32 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009504/1.179, allocations: 1.301 MB / 0.5348 GB, free: 89.98 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005682/1.184, allocations: 0.5816 MB / 0.5353 GB, free: 89.96 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03555/1.22, allocations: 18.51 MB / 0.5534 GB, free: 76.24 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00488/1.225, allocations: 96.28 kB / 0.5535 GB, free: 76.24 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008735/1.226, allocations: 123.6 kB / 0.5536 GB, free: 76.21 MB / 395.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference of ports" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (314): * Single equations (assignments): 305 * 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%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 51,3 42} Notification: Performance of prepare postOptimizeDAE: time 0.0008559/1.227, allocations: 157.8 kB / 0.5538 GB, free: 76.07 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01633/1.243, allocations: 3.987 MB / 0.5576 GB, free: 73.68 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/1.244, allocations: 252.9 kB / 0.5579 GB, free: 73.43 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01679/1.261, allocations: 4.26 MB / 0.5621 GB, free: 69.74 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01507/1.276, allocations: 3.764 MB / 0.5657 GB, free: 66.36 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.696e-05/1.276, allocations: 4 kB / 0.5657 GB, free: 66.35 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001138/1.277, allocations: 19.08 kB / 0.5657 GB, free: 66.35 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03043/1.307, allocations: 9.15 MB / 0.5747 GB, free: 58.8 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.038e-05/1.307, allocations: 4 kB / 0.5747 GB, free: 58.79 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005246/1.312, allocations: 0.5006 MB / 0.5752 GB, free: 58.38 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009851/1.322, allocations: 1.355 MB / 0.5765 GB, free: 57.28 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000793/1.323, allocations: 30.22 kB / 0.5765 GB, free: 57.26 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03252/1.356, allocations: 17.1 MB / 0.5932 GB, free: 40.57 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0951/1.451, allocations: 26.48 MB / 0.6191 GB, free: 15.32 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02825/1.479, allocations: 6.363 MB / 0.6253 GB, free: 8.742 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003498/1.483, allocations: 0.6942 MB / 0.626 GB, free: 8.027 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001517/1.484, allocations: 4 kB / 0.626 GB, free: 8.023 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005613/1.49, allocations: 103.9 kB / 0.6261 GB, free: 7.922 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001833/1.492, allocations: 275 kB / 0.6263 GB, free: 7.652 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008227/1.493, allocations: 104 kB / 0.6264 GB, free: 7.551 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.003998/1.497, allocations: 1.14 MB / 0.6276 GB, free: 6.418 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.272e-06/1.497, allocations: 4 kB / 0.6276 GB, free: 6.414 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.008691/1.505, allocations: 0.9101 MB / 0.6284 GB, free: 5.504 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (256): * Single equations (assignments): 249 * 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%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,4 53} Notification: Performance of Backend phase and start with SimCode phase: time 0.03453/1.54, allocations: 8.133 MB / 0.6364 GB, free: 13.27 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0193/1.559, allocations: 4.293 MB / 0.6406 GB, free: 8.91 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/1.559, allocations: 0 / 0.6406 GB, free: 8.91 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009773/1.569, allocations: 2.95 MB / 0.6435 GB, free: 5.902 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003194/1.572, allocations: 242.7 kB / 0.6437 GB, free: 5.672 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02138/1.594, allocations: 6.183 MB / 0.6497 GB, free: 15.39 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002424/1.596, allocations: 1.835 MB / 0.6515 GB, free: 13.51 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003694/1.6, allocations: 1.116 MB / 0.6526 GB, free: 12.39 MB / 427.1 MB Notification: Performance of SimCode: time 4.939e-06/1.6, allocations: 0 / 0.6526 GB, free: 12.39 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.778/6.378, allocations: 139.6 MB / 0.789 GB, free: 24.47 MB / 427.1 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