Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009605/0.0009609, allocations: 94.16 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.093e-05/2.113e-05, allocations: 4 kB / 343.8 MB, free: 8.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09884/0.09888, allocations: 51.48 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.321/0.42, allocations: 78.75 MB / 474 MB, free: 12.83 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001881/0.4202, allocations: 68.92 kB / 474.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006119/0.4263, allocations: 2.422 MB / 476.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4264, allocations: 192 / 476.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.4264, allocations: 4 kB / 476.5 MB, free: 11.38 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004136/0.4268, allocations: 411.4 kB / 476.9 MB, free: 10.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.4268, allocations: 8.031 kB / 476.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.493e-05/0.4269, allocations: 15.81 kB / 476.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.4271, allocations: 203.8 kB / 477.1 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.4271, allocations: 4 kB / 477.1 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.752e-05/0.4271, allocations: 8.844 kB / 477.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001664/0.4273, allocations: 65.55 kB / 477.2 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.4276, allocations: 213.9 kB / 477.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.4276, allocations: 0 / 477.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.4276, allocations: 0 / 477.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.4277, allocations: 4 kB / 477.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004516/0.4281, allocations: 0.5652 MB / 478 MB, free: 9.953 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.4283, allocations: 120.3 kB / 478.1 MB, free: 9.836 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.47e-05/0.4284, allocations: 66.98 kB / 478.2 MB, free: 9.781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.4285, allocations: 9.594 kB / 478.2 MB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.361e-05/0.4285, allocations: 33.88 kB / 478.2 MB, free: 9.738 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.4285, allocations: 0 / 478.2 MB, free: 9.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.00023/0.4287, allocations: 109.8 kB / 478.3 MB, free: 9.648 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.4288, allocations: 116.6 kB / 478.4 MB, free: 9.512 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.143e-05/0.4289, allocations: 120.7 kB / 478.5 MB, free: 9.398 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.4289, allocations: 29.7 kB / 478.6 MB, free: 9.363 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.672e-05/0.4289, allocations: 106 kB / 478.7 MB, free: 9.266 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.4289, allocations: 23.67 kB / 478.7 MB, free: 9.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-06/0.4289, allocations: 0 / 478.7 MB, free: 9.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.289e-05/0.429, allocations: 325.9 kB / 479 MB, free: 8.934 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.528e-05/0.429, allocations: 19.31 kB / 479 MB, free: 8.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.444e-05/0.4291, allocations: 121.8 kB / 479.2 MB, free: 8.766 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.594e-05/0.4292, allocations: 36.75 kB / 479.2 MB, free: 8.742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.4292, allocations: 4 kB / 479.2 MB, free: 8.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001885/0.4294, allocations: 142.5 kB / 479.3 MB, free: 8.621 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.4294, allocations: 9.719 kB / 479.3 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.4294, allocations: 4 kB / 479.3 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4294, allocations: 4.469 kB / 479.3 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.4296, allocations: 54.14 kB / 479.4 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.4296, allocations: 16.83 kB / 479.4 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.4297, allocations: 14.3 kB / 479.4 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.4297, allocations: 8 kB / 479.4 MB, free: 8.527 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 5.121e-05/0.4298, allocations: 112.9 kB / 479.5 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001653/0.43, allocations: 111.3 kB / 479.7 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.408e-05/0.43, allocations: 15.84 kB / 479.7 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.553e-05/0.4301, allocations: 19.47 kB / 479.7 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4301, allocations: 0 / 479.7 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4301, allocations: 5.547 kB / 479.7 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4301, allocations: 0 / 479.7 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.4303, allocations: 173.1 kB / 479.9 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4303, allocations: 1.641 kB / 479.9 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.4305, allocations: 36.72 kB / 479.9 MB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.4305, allocations: 5.547 kB / 479.9 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.4305, allocations: 7.938 kB / 479.9 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.4305, allocations: 6.562 kB / 479.9 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.4305, allocations: 3.953 kB / 479.9 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002457/0.4308, allocations: 352.2 kB / 480.3 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.551e-05/0.4308, allocations: 93.02 kB / 480.4 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.4309, allocations: 5.781 kB / 480.4 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.431, allocations: 13.34 kB / 480.4 MB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.102e-05/0.431, allocations: 6.984 kB / 480.4 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.4311, allocations: 5.688 kB / 480.4 MB, free: 7.613 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.594e-05/0.4311, allocations: 98.31 kB / 480.5 MB, free: 7.527 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4311, allocations: 0 / 480.5 MB, free: 7.527 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003181/0.4314, allocations: 20 kB / 480.5 MB, free: 7.508 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0004071/0.4318, allocations: 1.028 MB / 481.5 MB, free: 6.496 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.432, allocations: 86.27 kB / 481.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.432, allocations: 0 / 481.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.098e-05/0.432, allocations: 19.19 kB / 481.6 MB, free: 6.418 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.4324, allocations: 42.75 kB / 481.7 MB, free: 6.395 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006666/0.4331, allocations: 339.1 kB / 482 MB, free: 6.078 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/0.4332, allocations: 0.7206 MB / 482.7 MB, free: 5.348 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.111e-05/0.4333, allocations: 7.609 kB / 482.7 MB, free: 5.344 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.526e-05/0.4333, allocations: 35.41 kB / 482.8 MB, free: 5.328 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4333, allocations: 0 / 482.8 MB, free: 5.328 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.4546, allocations: 2.044 MB / 484.8 MB, free: 3.734 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.4548, allocations: 173.1 kB / 485 MB, free: 3.547 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.542/1.997, allocations: 4 kB / 485 MB, free: 3.543 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat