Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008375/0.0008375, allocations: 99 kB / 292.1 MB, free: 6.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.264e-05/2.268e-05, allocations: 0 / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.334/0.4385, allocations: 78.31 MB / 480.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.4388, allocations: 72.7 kB / 480.5 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00609/0.4449, allocations: 2.278 MB / 482.8 MB, free: 9.211 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4449, allocations: 0 / 482.8 MB, free: 9.211 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.4449, allocations: 4 kB / 482.8 MB, free: 9.207 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0003948/0.4453, allocations: 392.5 kB / 483.2 MB, free: 8.789 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.4454, allocations: 12.03 kB / 483.2 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.966e-05/0.4454, allocations: 34.81 kB / 483.2 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.249e-05/0.4455, allocations: 19.95 kB / 483.2 MB, free: 8.723 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.4456, allocations: 186.6 kB / 483.4 MB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.4456, allocations: 8.797 kB / 483.4 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.01e-05/0.4457, allocations: 12.25 kB / 483.4 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001838/0.4459, allocations: 113.6 kB / 483.5 MB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.4459, allocations: 0 / 483.5 MB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.4459, allocations: 7.172 kB / 483.5 MB, free: 8.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.4459, allocations: 4 kB / 483.5 MB, free: 8.391 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.961e-05/0.446, allocations: 41.5 kB / 483.6 MB, free: 8.363 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006563/0.4467, allocations: 0.5368 MB / 484.1 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.4468, allocations: 73.19 kB / 484.2 MB, free: 7.742 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.1e-05/0.4469, allocations: 24.05 kB / 484.2 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.4469, allocations: 0 / 484.2 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.4469, allocations: 38.25 kB / 484.3 MB, free: 7.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.4469, allocations: 0 / 484.3 MB, free: 7.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001768/0.4471, allocations: 73.47 kB / 484.3 MB, free: 7.613 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.444e-05/0.4471, allocations: 55.41 kB / 484.4 MB, free: 7.547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.216e-05/0.4472, allocations: 126.2 kB / 484.5 MB, free: 7.426 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.045e-05/0.4472, allocations: 28.88 kB / 484.5 MB, free: 7.395 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.201e-05/0.4473, allocations: 107.1 kB / 484.6 MB, free: 7.293 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.4473, allocations: 34.86 kB / 484.7 MB, free: 7.266 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-06/0.4473, allocations: 0 / 484.7 MB, free: 7.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.62e-05/0.4474, allocations: 322.3 kB / 485 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.681e-05/0.4474, allocations: 19.06 kB / 485 MB, free: 6.934 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.63e-05/0.4475, allocations: 55.05 kB / 485.1 MB, free: 6.875 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.672e-05/0.4475, allocations: 26.8 kB / 485.1 MB, free: 6.855 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4475, allocations: 1.594 kB / 485.1 MB, free: 6.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001426/0.4477, allocations: 108.2 kB / 485.2 MB, free: 6.762 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.4477, allocations: 9.719 kB / 485.2 MB, free: 6.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.4477, allocations: 8.062 kB / 485.2 MB, free: 6.746 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.4477, allocations: 4 kB / 485.2 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.4479, allocations: 31.97 kB / 485.2 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.4479, allocations: 4 kB / 485.2 MB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.737e-05/0.448, allocations: 15.16 kB / 485.3 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.448, allocations: 12.08 kB / 485.3 MB, free: 6.688 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.737e-05/0.4481, allocations: 112.3 kB / 485.4 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.4481, allocations: 7.953 kB / 485.4 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.437e-05/0.4482, allocations: 14.75 kB / 485.4 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.4482, allocations: 0 / 485.4 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4482, allocations: 0 / 485.4 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.4482, allocations: 0 / 485.4 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/0.4483, allocations: 207.1 kB / 485.6 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4483, allocations: 0 / 485.6 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.4485, allocations: 24.98 kB / 485.6 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4485, allocations: 3.953 kB / 485.6 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.4485, allocations: 4 kB / 485.6 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.4485, allocations: 4 kB / 485.6 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4485, allocations: 3.938 kB / 485.6 MB, free: 6.285 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001871/0.4487, allocations: 197.5 kB / 485.8 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.763e-05/0.4488, allocations: 85.02 kB / 485.9 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.4488, allocations: 3.953 kB / 485.9 MB, free: 5.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.564e-05/0.4489, allocations: 16.72 kB / 485.9 MB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.4489, allocations: 0 / 485.9 MB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.4489, allocations: 7.188 kB / 486 MB, free: 5.977 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.629e-05/0.449, allocations: 96.09 kB / 486 MB, free: 5.887 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.449, allocations: 0 / 486 MB, free: 5.887 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002192/0.4492, allocations: 23.69 kB / 486.1 MB, free: 5.867 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003289/0.4495, allocations: 0.731 MB / 486.8 MB, free: 5.133 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000122/0.4497, allocations: 57.78 kB / 486.9 MB, free: 5.094 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4497, allocations: 0 / 486.9 MB, free: 5.094 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.526e-05/0.4497, allocations: 19.88 kB / 486.9 MB, free: 5.078 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002365/0.45, allocations: 24.61 kB / 486.9 MB, free: 5.059 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006094/0.4506, allocations: 319.8 kB / 487.2 MB, free: 4.734 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001135/0.4507, allocations: 0.7004 MB / 487.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.894e-05/0.4508, allocations: 13.92 kB / 487.9 MB, free: 3.996 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.4508, allocations: 29.92 kB / 488 MB, free: 3.98 MB / 346.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4508, allocations: 0 / 488 MB, free: 3.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01242/0.4632, allocations: 2.003 MB / 490 MB, free: 2.203 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001308/0.4634, allocations: 162.5 kB / 490.1 MB, free: 1.984 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.522/1.986, allocations: 0 / 490.1 MB, free: 1.984 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat