Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001537/0.001537, allocations: 176.5 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.014/2.014, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001402/0.001402, allocations: 95.16 kB / 261.8 MB, free: 13.44 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.1036/0.1036, allocations: 12.58 MB / 322.3 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.001e-05/2.001e-05, allocations: 0 / 379 MB, free: 75.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09909/0.09915, allocations: 50.38 MB / 429.4 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4534/0.5526, allocations: 79.22 MB / 0.4967 GB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.5529, allocations: 75.33 kB / 0.4968 GB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009372/0.5623, allocations: 2.324 MB / 0.4991 GB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.5624, allocations: 0 / 0.4991 GB, free: 11.38 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.447e-05/0.5624, allocations: 3.969 kB / 0.4991 GB, free: 11.38 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006185/0.5631, allocations: 410.5 kB / 0.4994 GB, free: 11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.5631, allocations: 11.38 kB / 0.4995 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.323e-05/0.5632, allocations: 11.69 kB / 0.4995 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.5634, allocations: 206.6 kB / 0.4997 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.5634, allocations: 7.891 kB / 0.4997 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.5635, allocations: 11.62 kB / 0.4997 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000213/0.5637, allocations: 61.2 kB / 0.4997 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/0.5642, allocations: 210.1 kB / 0.4999 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.5642, allocations: 0 / 0.4999 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.899e-05/0.5642, allocations: 3.812 kB / 0.4999 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.5642, allocations: 0 / 0.4999 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006881/0.5649, allocations: 0.5535 MB / 0.5005 GB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.5653, allocations: 127.7 kB / 0.5006 GB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.5654, allocations: 58.58 kB / 0.5007 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.798e-05/0.5655, allocations: 11.61 kB / 0.5007 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.995e-05/0.5655, allocations: 38.06 kB / 0.5007 GB, free: 10.04 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 3.166e-06/0.5655, allocations: 3.984 kB / 0.5007 GB, free: 10.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003335/0.5659, allocations: 114.5 kB / 0.5008 GB, free: 9.988 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.394e-05/0.5659, allocations: 106.7 kB / 0.5009 GB, free: 9.863 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.566, allocations: 110.2 kB / 0.501 GB, free: 9.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.5661, allocations: 29.64 kB / 0.5011 GB, free: 9.734 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.99e-05/0.5662, allocations: 117.6 kB / 0.5012 GB, free: 9.637 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.938e-05/0.5662, allocations: 31.41 kB / 0.5012 GB, free: 9.621 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-06/0.5662, allocations: 4.031 kB / 0.5012 GB, free: 9.617 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.705e-05/0.5663, allocations: 316.9 kB / 0.5015 GB, free: 9.305 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.783e-05/0.5664, allocations: 21.91 kB / 0.5015 GB, free: 9.301 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.5665, allocations: 117.6 kB / 0.5016 GB, free: 9.172 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.356e-05/0.5666, allocations: 41.8 kB / 0.5017 GB, free: 9.164 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.5666, allocations: 3.938 kB / 0.5017 GB, free: 9.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003109/0.5669, allocations: 151.4 kB / 0.5018 GB, free: 9.102 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.567, allocations: 3.875 kB / 0.5018 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.567, allocations: 3.688 kB / 0.5018 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.567, allocations: 14.14 kB / 0.5019 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.5673, allocations: 43.78 kB / 0.5019 GB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.5674, allocations: 11.47 kB / 0.5019 GB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.5675, allocations: 18.5 kB / 0.5019 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.5676, allocations: 11.66 kB / 0.5019 GB, free: 9.082 MB / 330.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 8.268e-05/0.5677, allocations: 109.1 kB / 0.502 GB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002571/0.5679, allocations: 113.7 kB / 0.5021 GB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.911e-05/0.568, allocations: 18.66 kB / 0.5022 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.5681, allocations: 11.94 kB / 0.5022 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.5681, allocations: 0 / 0.5022 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.5682, allocations: 3.781 kB / 0.5022 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.5682, allocations: 2.953 kB / 0.5022 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.5685, allocations: 177 kB / 0.5023 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.5685, allocations: 0 / 0.5023 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003244/0.5688, allocations: 40.81 kB / 0.5024 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.5688, allocations: 0 / 0.5024 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.5689, allocations: 11.16 kB / 0.5024 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.5689, allocations: 6.812 kB / 0.5024 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.5689, allocations: 3.875 kB / 0.5024 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00038/0.5693, allocations: 346.9 kB / 0.5027 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.948e-05/0.5693, allocations: 88.78 kB / 0.5028 GB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.97e-05/0.5694, allocations: 3.719 kB / 0.5028 GB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.5696, allocations: 6.297 kB / 0.5028 GB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.5696, allocations: 14.58 kB / 0.5028 GB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.5697, allocations: 7.438 kB / 0.5029 GB, free: 8.379 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.619e-05/0.5697, allocations: 93.67 kB / 0.5029 GB, free: 8.305 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5697, allocations: 0 / 0.5029 GB, free: 8.305 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004967/0.5702, allocations: 30.44 kB / 0.503 GB, free: 8.297 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.0006014/0.5709, allocations: 1.028 MB / 0.504 GB, free: 7.367 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002467/0.5711, allocations: 89.06 kB / 0.5041 GB, free: 7.355 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5711, allocations: 0 / 0.5041 GB, free: 7.355 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.675e-05/0.5712, allocations: 15.38 kB / 0.5041 GB, free: 7.352 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.5717, allocations: 47.66 kB / 0.5041 GB, free: 7.344 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009917/0.5727, allocations: 330.7 kB / 0.5044 GB, free: 7.098 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001927/0.5729, allocations: 0.7175 MB / 0.5051 GB, free: 6.402 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.537e-05/0.573, allocations: 12.19 kB / 0.5052 GB, free: 6.398 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.817e-05/0.5731, allocations: 43.77 kB / 0.5052 GB, free: 6.387 MB / 330.7 MB Notification: Performance of SimCode: time 1.001e-06/0.5731, allocations: 0 / 0.5052 GB, free: 6.387 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03738/0.6105, allocations: 2.052 MB / 0.5072 GB, free: 6.133 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002486/0.6108, allocations: 178.3 kB / 0.5074 GB, free: 5.945 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.545/3.156, allocations: 3.438 kB / 0.5074 GB, free: 5.945 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat