Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",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.002264/0.002263, allocations: 177.9 kB / 8.05 MB, free: 1.023 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.244/2.244, allocations: 205.3 MB / 213.8 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 94.91 kB / 261.8 MB, free: 13.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1187/0.1187, allocations: 12.59 MB / 322.3 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.783e-05/1.778e-05, allocations: 0 / 379 MB, free: 75.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08772/0.08777, allocations: 50.38 MB / 429.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.462/0.5499, allocations: 79.43 MB / 0.4969 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.5502, allocations: 75.34 kB / 0.497 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01207/0.5623, allocations: 2.582 MB / 0.4995 GB, free: 11.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5623, allocations: 2.078 kB / 0.4995 GB, free: 11.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.976e-05/0.5624, allocations: 4 kB / 0.4995 GB, free: 11.55 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0008448/0.5632, allocations: 415.7 kB / 0.4999 GB, free: 11.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.5633, allocations: 7.5 kB / 0.4999 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.781e-05/0.5634, allocations: 16.44 kB / 0.4999 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.5637, allocations: 205.8 kB / 0.5001 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.5637, allocations: 11.67 kB / 0.5001 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.217e-05/0.5638, allocations: 3.844 kB / 0.5001 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002559/0.5641, allocations: 59.38 kB / 0.5002 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004197/0.5645, allocations: 190.9 kB / 0.5004 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.5645, allocations: 0 / 0.5004 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.5646, allocations: 0 / 0.5004 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.5646, allocations: 3.719 kB / 0.5004 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007008/0.5653, allocations: 0.5734 MB / 0.5009 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.5656, allocations: 125.6 kB / 0.5011 GB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.5658, allocations: 57.7 kB / 0.5011 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.5658, allocations: 3.5 kB / 0.5011 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.5658, allocations: 33.75 kB / 0.5012 GB, free: 10.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.214e-06/0.5658, allocations: 4.812 kB / 0.5012 GB, free: 10.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003222/0.5662, allocations: 100.3 kB / 0.5013 GB, free: 10.17 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.5662, allocations: 118.2 kB / 0.5014 GB, free: 10.04 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.5664, allocations: 122.8 kB / 0.5015 GB, free: 9.941 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.5664, allocations: 25.7 kB / 0.5015 GB, free: 9.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.207e-05/0.5665, allocations: 118.2 kB / 0.5016 GB, free: 9.809 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.5665, allocations: 22.86 kB / 0.5016 GB, free: 9.797 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.665e-06/0.5665, allocations: 0 / 0.5016 GB, free: 9.797 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.638e-05/0.5666, allocations: 324.7 kB / 0.502 GB, free: 9.484 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.46e-05/0.5667, allocations: 22.06 kB / 0.502 GB, free: 9.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.5668, allocations: 117.6 kB / 0.5021 GB, free: 9.352 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.5671, allocations: 136.6 kB / 0.5022 GB, free: 9.246 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.5671, allocations: 0 / 0.5022 GB, free: 9.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003066/0.5674, allocations: 141.9 kB / 0.5023 GB, free: 9.191 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.5675, allocations: 11.72 kB / 0.5024 GB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.5675, allocations: 7.344 kB / 0.5024 GB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.5675, allocations: 11.58 kB / 0.5024 GB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.5678, allocations: 41.25 kB / 0.5024 GB, free: 9.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.5678, allocations: 19.17 kB / 0.5024 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001713/0.568, allocations: 15.53 kB / 0.5025 GB, free: 9.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.568, allocations: 18.23 kB / 0.5025 GB, free: 9.164 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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 0.0001032/0.5682, allocations: 116.7 kB / 0.5026 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002669/0.5684, allocations: 107.4 kB / 0.5027 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.052e-05/0.5685, allocations: 15.61 kB / 0.5027 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.217e-05/0.5686, allocations: 18.48 kB / 0.5027 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.5686, allocations: 3.688 kB / 0.5027 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.5686, allocations: 0 / 0.5027 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.5686, allocations: 3.938 kB / 0.5027 GB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002724/0.5689, allocations: 175.8 kB / 0.5029 GB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.5689, allocations: 4 kB / 0.5029 GB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003786/0.5693, allocations: 52.12 kB / 0.5029 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.5693, allocations: 3.719 kB / 0.5029 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.5694, allocations: 0 / 0.5029 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.5694, allocations: 3.953 kB / 0.503 GB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.5694, allocations: 3.844 kB / 0.503 GB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003857/0.5698, allocations: 353 kB / 0.5033 GB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.322e-05/0.5698, allocations: 95.44 kB / 0.5034 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.5699, allocations: 4.031 kB / 0.5034 GB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.5701, allocations: 11.5 kB / 0.5034 GB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.5702, allocations: 7.156 kB / 0.5034 GB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.5702, allocations: 3.719 kB / 0.5034 GB, free: 8.449 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.184e-05/0.5703, allocations: 102.2 kB / 0.5035 GB, free: 8.371 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5703, allocations: 0 / 0.5035 GB, free: 8.371 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004814/0.5708, allocations: 30.31 kB / 0.5035 GB, free: 8.363 MB / 330.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.0006035/0.5714, allocations: 1.027 MB / 0.5045 GB, free: 7.438 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002595/0.5717, allocations: 84.69 kB / 0.5046 GB, free: 7.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5717, allocations: 0 / 0.5046 GB, free: 7.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.879e-05/0.5717, allocations: 18.56 kB / 0.5046 GB, free: 7.426 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004994/0.5722, allocations: 42.44 kB / 0.5047 GB, free: 7.426 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.5735, allocations: 362.7 kB / 0.505 GB, free: 7.164 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.5737, allocations: 0.7229 MB / 0.5057 GB, free: 6.465 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.927e-05/0.5738, allocations: 11.36 kB / 0.5057 GB, free: 6.465 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.489e-05/0.5739, allocations: 38.2 kB / 0.5058 GB, free: 6.457 MB / 330.7 MB Notification: Performance of SimCode: time 1.693e-06/0.5739, allocations: 7.938 kB / 0.5058 GB, free: 6.449 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03701/0.611, allocations: 2.234 MB / 0.508 GB, free: 5.941 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003741/0.6114, allocations: 202 kB / 0.5082 GB, free: 5.676 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.603/3.214, allocations: 0 / 0.5082 GB, free: 5.676 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat does not exist to compare? outputFormat=mat