Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001593/0.001593, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.675/1.675, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000981/0.000981, allocations: 79.95 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.9e-05/1.886e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08206/0.0821, allocations: 47.6 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3303/0.4125, allocations: 91.57 MB / 454.7 MB, free: 3.969 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.4128, allocations: 82.94 kB / 454.8 MB, free: 3.926 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1381/0.551, allocations: 49.59 MB / 0.4926 GB, free: 8.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.551, allocations: 4 kB / 0.4926 GB, free: 8.156 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000117/0.5511, allocations: 48 kB / 0.4926 GB, free: 8.109 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.005143/0.5563, allocations: 2.314 MB / 0.4949 GB, free: 5.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.5563, allocations: 8.031 kB / 0.4949 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005185/0.5569, allocations: 296.4 kB / 0.4952 GB, free: 5.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002598/0.5595, allocations: 1.333 MB / 0.4965 GB, free: 4.043 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.828e-05/0.5596, allocations: 68 kB / 0.4966 GB, free: 3.977 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.5598, allocations: 120 kB / 0.4967 GB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003086/0.5629, allocations: 1.66 MB / 0.4983 GB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003104/0.566, allocations: 1.487 MB / 0.4997 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.349e-05/0.5661, allocations: 0 / 0.4997 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001449/0.5662, allocations: 4 kB / 0.4998 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.485e-05/0.5663, allocations: 51.95 kB / 0.4998 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01313/0.5794, allocations: 7.277 MB / 0.5069 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003617/0.5831, allocations: 2.125 MB / 0.509 GB, free: 6.902 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00208/0.5852, allocations: 1.215 MB / 0.5102 GB, free: 5.691 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.5853, allocations: 41.97 kB / 0.5102 GB, free: 5.652 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.953e-05/0.5854, allocations: 64.52 kB / 0.5103 GB, free: 5.578 MB / 394.7 MB Notification: Performance of pre-optimization done (n=240): time 4.358e-06/0.5854, allocations: 0 / 0.5103 GB, free: 5.578 MB / 394.7 MB Notification: Performance of matching and sorting (n=372): time 0.03676/0.6222, allocations: 12.48 MB / 0.5225 GB, free: 8.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.6223, allocations: 90.81 kB / 0.5226 GB, free: 8.879 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002455/0.6247, allocations: 1.502 MB / 0.524 GB, free: 7.371 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003401/0.6251, allocations: 25.7 kB / 0.524 GB, free: 7.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007758/0.6259, allocations: 0.9538 MB / 0.525 GB, free: 6.371 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009939/0.6269, allocations: 1.177 MB / 0.5261 GB, free: 5.176 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.6271, allocations: 0 / 0.5261 GB, free: 5.176 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.6273, allocations: 433.1 kB / 0.5265 GB, free: 4.746 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002095/0.6294, allocations: 1.186 MB / 0.5277 GB, free: 3.559 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002357/0.6317, allocations: 1.451 MB / 0.5291 GB, free: 2.062 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002341/0.6341, allocations: 1.363 MB / 0.5304 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.6341, allocations: 0 / 0.5304 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.2676/0.9018, allocations: 4.26 MB / 0.5346 GB, free: 109.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/0.9018, allocations: 6.844 kB / 0.5346 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-05/0.9019, allocations: 3.109 kB / 0.5346 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00883/0.9107, allocations: 1.302 MB / 0.5359 GB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004859/0.9156, allocations: 0.5781 MB / 0.5364 GB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.037/0.9527, allocations: 18.51 MB / 0.5545 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004431/0.9572, allocations: 105.9 kB / 0.5546 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008075/0.958, allocations: 117 kB / 0.5547 GB, free: 100.2 MB / 410.7 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.0008483/0.9588, allocations: 159.9 kB / 0.5549 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01394/0.9728, allocations: 3.981 MB / 0.5588 GB, free: 99.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001201/0.9741, allocations: 264.1 kB / 0.559 GB, free: 99.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01432/0.9884, allocations: 4.26 MB / 0.5632 GB, free: 97.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01337/1.002, allocations: 3.765 MB / 0.5669 GB, free: 95.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.183e-05/1.002, allocations: 0 / 0.5669 GB, free: 95.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.617e-05/1.002, allocations: 24.94 kB / 0.5669 GB, free: 95.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02595/1.028, allocations: 9.152 MB / 0.5758 GB, free: 91.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-05/1.028, allocations: 3.406 kB / 0.5758 GB, free: 91.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003709/1.032, allocations: 0.497 MB / 0.5763 GB, free: 91.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007253/1.039, allocations: 1.354 MB / 0.5776 GB, free: 91.42 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005943/1.04, allocations: 30.12 kB / 0.5777 GB, free: 91.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02876/1.068, allocations: 17.09 MB / 0.5944 GB, free: 78.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05527/1.124, allocations: 26.49 MB / 0.6202 GB, free: 56.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01193/1.136, allocations: 6.348 MB / 0.6264 GB, free: 50.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/1.137, allocations: 0.6924 MB / 0.6271 GB, free: 49.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004948/1.138, allocations: 11.52 kB / 0.6271 GB, free: 49.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002085/1.14, allocations: 99.05 kB / 0.6272 GB, free: 49.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007335/1.141, allocations: 289.6 kB / 0.6275 GB, free: 49.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001967/1.141, allocations: 98.78 kB / 0.6276 GB, free: 49.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001619/1.142, allocations: 1.136 MB / 0.6287 GB, free: 48.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.143, allocations: 0 / 0.6287 GB, free: 48.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003667/1.146, allocations: 0.9155 MB / 0.6296 GB, free: 47.52 MB / 410.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.01263/1.159, allocations: 8.132 MB / 0.6375 GB, free: 39.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007226/1.166, allocations: 4.284 MB / 0.6417 GB, free: 35.56 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/1.166, allocations: 4 kB / 0.6417 GB, free: 35.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004649/1.171, allocations: 2.947 MB / 0.6446 GB, free: 32.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002143/1.173, allocations: 243.8 kB / 0.6448 GB, free: 32.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/1.186, allocations: 6.1 MB / 0.6508 GB, free: 26.94 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001512/1.187, allocations: 1.837 MB / 0.6526 GB, free: 25.47 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002164/1.189, allocations: 322.5 kB / 0.6529 GB, free: 25.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001594/1.191, allocations: 1.08 MB / 0.6539 GB, free: 24.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/1.191, allocations: 0 / 0.6539 GB, free: 24.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3672/1.558, allocations: 83.41 MB / 0.7354 GB, free: 104.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/1.559, allocations: 206.5 kB / 0.7356 GB, free: 104.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.043/7.602, allocations: 3.656 kB / 0.7356 GB, free: 104.3 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat