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.001157/0.001157, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.367/1.367, allocations: 221.3 MB / 235.5 MB, free: 2.875 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008519/0.0008519, allocations: 93.09 kB / 286.5 MB, free: 160 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.314e-05/2.318e-05, allocations: 0 / 343.9 MB, free: 4.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 50.42 MB / 394.3 MB, free: 1.723 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3681/0.4744, allocations: 95.2 MB / 489.5 MB, free: 8.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.4748, allocations: 83.95 kB / 489.6 MB, free: 8.098 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1397/0.6145, allocations: 51.37 MB / 0.5283 GB, free: 4.551 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6145, allocations: 4 kB / 0.5283 GB, free: 4.547 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001369/0.6146, allocations: 52 kB / 0.5284 GB, free: 4.496 MB / 410.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.006723/0.6214, allocations: 2.303 MB / 0.5306 GB, free: 2.133 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.6214, allocations: 12.03 kB / 0.5306 GB, free: 2.121 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007826/0.6222, allocations: 283.4 kB / 0.5309 GB, free: 1.832 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000735/0.623, allocations: 297.1 kB / 0.5312 GB, free: 1.539 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.6258, allocations: 1.333 MB / 0.5325 GB, free: 156 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001427/0.6259, allocations: 156.2 kB / 0.5326 GB, free: 15.99 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003215/0.6263, allocations: 211.9 kB / 0.5328 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003775/0.6301, allocations: 1.776 MB / 0.5346 GB, free: 13.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.108e-05/0.6301, allocations: 11.84 kB / 0.5346 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001825/0.6303, allocations: 84 kB / 0.5347 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.891e-05/0.6304, allocations: 52 kB / 0.5347 GB, free: 13.81 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003565/0.6339, allocations: 1.766 MB / 0.5364 GB, free: 12.03 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01447/0.6484, allocations: 7.594 MB / 0.5439 GB, free: 4.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003408/0.6519, allocations: 2.234 MB / 0.546 GB, free: 1.883 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002335/0.6542, allocations: 1.288 MB / 0.5473 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001536/0.6544, allocations: 37.97 kB / 0.5473 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.262e-05/0.6545, allocations: 60.5 kB / 0.5474 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of pre-optimization done (n=240): time 4.569e-06/0.6545, allocations: 4 kB / 0.5474 GB, free: 500 kB / 426.7 MB Notification: Performance of matching and sorting (n=372): time 0.3036/0.9581, allocations: 15.27 MB / 0.5623 GB, free: 107.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06591/1.024, allocations: 30.85 MB / 0.5924 GB, free: 92.38 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002646/1.027, allocations: 1.616 MB / 0.594 GB, free: 91.76 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008109/1.028, allocations: 89.23 kB / 0.5941 GB, free: 91.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006129/1.028, allocations: 0.9684 MB / 0.595 GB, free: 91.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001655/1.03, allocations: 1.231 MB / 0.5962 GB, free: 90.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/1.03, allocations: 70.66 kB / 0.5963 GB, free: 90.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002162/1.03, allocations: 435.5 kB / 0.5967 GB, free: 89.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/1.033, allocations: 1.252 MB / 0.5979 GB, free: 89.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002273/1.035, allocations: 1.541 MB / 0.5994 GB, free: 88.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/1.037, allocations: 1.433 MB / 0.6008 GB, free: 87.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/1.037, allocations: 3.719 kB / 0.6009 GB, free: 87.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.009686/1.047, allocations: 4.552 MB / 0.6053 GB, free: 85.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/1.047, allocations: 8.312 kB / 0.6053 GB, free: 85.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/1.047, allocations: 6.766 kB / 0.6053 GB, free: 85.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005232/1.052, allocations: 1.365 MB / 0.6066 GB, free: 85.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003355/1.056, allocations: 0.5799 MB / 0.6072 GB, free: 85.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02216/1.078, allocations: 19.23 MB / 0.626 GB, free: 67.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003267/1.081, allocations: 170.7 kB / 0.6262 GB, free: 67.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004093/1.082, allocations: 114.9 kB / 0.6263 GB, free: 67.07 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 () * 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,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.0005887/1.082, allocations: 273.3 kB / 0.6265 GB, free: 66.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000619/1.083, allocations: 264.7 kB / 0.6268 GB, free: 66.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009574/1.093, allocations: 4.605 MB / 0.6313 GB, free: 62.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008162/1.101, allocations: 4.017 MB / 0.6352 GB, free: 58.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/1.101, allocations: 0 / 0.6352 GB, free: 58.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-05/1.101, allocations: 25.36 kB / 0.6352 GB, free: 58.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01729/1.118, allocations: 9.765 MB / 0.6448 GB, free: 50.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/1.118, allocations: 4.031 kB / 0.6448 GB, free: 50.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002664/1.121, allocations: 0.4942 MB / 0.6452 GB, free: 50.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005272/1.126, allocations: 1.391 MB / 0.6466 GB, free: 49.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005263/1.127, allocations: 79.62 kB / 0.6467 GB, free: 49.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01922/1.146, allocations: 17.68 MB / 0.664 GB, free: 31.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05336/1.199, allocations: 27.25 MB / 0.6906 GB, free: 5.383 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01333/1.213, allocations: 6.672 MB / 0.6971 GB, free: 14.49 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002035/1.215, allocations: 0.7005 MB / 0.6978 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004151/1.215, allocations: 68 kB / 0.6978 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002042/1.217, allocations: 163.9 kB / 0.698 GB, free: 13.54 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000789/1.218, allocations: 282.9 kB / 0.6983 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002331/1.218, allocations: 105.8 kB / 0.6984 GB, free: 13.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002138/1.221, allocations: 1.254 MB / 0.6996 GB, free: 11.92 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.221, allocations: 0 / 0.6996 GB, free: 11.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004207/1.225, allocations: 1.069 MB / 0.7006 GB, free: 10.85 MB / 442.7 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.01566/1.24, allocations: 8.539 MB / 0.709 GB, free: 2.254 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2228/1.463, allocations: 4.527 MB / 0.7134 GB, free: 111.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/1.463, allocations: 1.156 kB / 0.7134 GB, free: 111.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005447/1.469, allocations: 3.118 MB / 0.7164 GB, free: 110.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002209/1.471, allocations: 314.3 kB / 0.7167 GB, free: 110.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01534/1.486, allocations: 6.506 MB / 0.7231 GB, free: 109 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002077/1.489, allocations: 1.846 MB / 0.7249 GB, free: 108.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0024/1.491, allocations: 327.4 kB / 0.7252 GB, free: 108.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001941/1.493, allocations: 1.087 MB / 0.7263 GB, free: 108.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.492e-06/1.493, allocations: 1.344 kB / 0.7263 GB, free: 108.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1299/1.623, allocations: 87.85 MB / 0.8121 GB, free: 56.88 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/1.623, allocations: 254.2 kB / 0.8123 GB, free: 56.54 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.113/7.736, allocations: 4 kB / 0.8123 GB, free: 56.54 MB / 442.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