Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.002223/0.002223, allocations: 181 kB / 8.049 MB, free: 1.027 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.209/2.209, 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.001122/0.001122, allocations: 96.7 kB / 261.8 MB, free: 13.45 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.1231/0.1231, allocations: 12.59 MB / 322.3 MB, free: 0.793 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.3e-05/3.322e-05, allocations: 0 / 379 MB, free: 75.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 50.37 MB / 429.4 MB, free: 24.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4887/0.6003, allocations: 79.2 MB / 0.4967 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.6007, allocations: 73.09 kB / 0.4967 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008885/0.6096, allocations: 2.298 MB / 0.499 GB, free: 11.21 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.6096, allocations: 0 / 0.499 GB, free: 11.21 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.6096, allocations: 0 / 0.499 GB, free: 11.21 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005734/0.6102, allocations: 413.2 kB / 0.4994 GB, free: 10.84 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.6103, allocations: 11.72 kB / 0.4994 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.923e-05/0.6104, allocations: 11.66 kB / 0.4994 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.6106, allocations: 199.5 kB / 0.4996 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.6106, allocations: 7.922 kB / 0.4996 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.6107, allocations: 11.62 kB / 0.4996 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002023/0.6109, allocations: 64.47 kB / 0.4997 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004188/0.6113, allocations: 201.8 kB / 0.4999 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.6114, allocations: 0 / 0.4999 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.6114, allocations: 0 / 0.4999 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.6114, allocations: 3.844 kB / 0.4999 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006952/0.6121, allocations: 0.5496 MB / 0.5004 GB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.6124, allocations: 128.5 kB / 0.5005 GB, free: 9.941 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.6125, allocations: 54.58 kB / 0.5006 GB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.841e-05/0.6125, allocations: 2.688 kB / 0.5006 GB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.6126, allocations: 45.11 kB / 0.5006 GB, free: 9.871 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.585e-06/0.6126, allocations: 0 / 0.5006 GB, free: 9.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003349/0.6129, allocations: 106.2 kB / 0.5007 GB, free: 9.824 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.613, allocations: 108.3 kB / 0.5008 GB, free: 9.699 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.6131, allocations: 112.2 kB / 0.5009 GB, free: 9.605 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.6131, allocations: 26.36 kB / 0.501 GB, free: 9.574 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.191e-05/0.6132, allocations: 117.3 kB / 0.5011 GB, free: 9.477 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.048e-05/0.6133, allocations: 28.36 kB / 0.5011 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-06/0.6133, allocations: 3.938 kB / 0.5011 GB, free: 9.457 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.317e-05/0.6134, allocations: 320.4 kB / 0.5014 GB, free: 9.145 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.752e-05/0.6134, allocations: 17.81 kB / 0.5014 GB, free: 9.145 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.6136, allocations: 112.9 kB / 0.5015 GB, free: 9.023 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.069e-05/0.6137, allocations: 44.81 kB / 0.5016 GB, free: 9.016 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.6137, allocations: 3.938 kB / 0.5016 GB, free: 9.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002823/0.614, allocations: 141.6 kB / 0.5017 GB, free: 8.957 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.614, allocations: 7.859 kB / 0.5017 GB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.614, allocations: 3.906 kB / 0.5017 GB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.614, allocations: 7.5 kB / 0.5017 GB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003169/0.6144, allocations: 44.38 kB / 0.5018 GB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.6144, allocations: 8.562 kB / 0.5018 GB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.6146, allocations: 22.3 kB / 0.5018 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.6146, allocations: 14.94 kB / 0.5018 GB, free: 8.938 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 7.473e-05/0.6147, allocations: 107 kB / 0.5019 GB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002416/0.6149, allocations: 102.6 kB / 0.502 GB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.615, allocations: 15.61 kB / 0.502 GB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.618e-05/0.6151, allocations: 17.98 kB / 0.5021 GB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.6151, allocations: 3.844 kB / 0.5021 GB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.6151, allocations: 4.875 kB / 0.5021 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.6151, allocations: 144 / 0.5021 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002771/0.6154, allocations: 178.2 kB / 0.5022 GB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.6154, allocations: 3.984 kB / 0.5022 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003145/0.6158, allocations: 37.45 kB / 0.5023 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.6158, allocations: 3.953 kB / 0.5023 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.6158, allocations: 3.938 kB / 0.5023 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.6158, allocations: 11.39 kB / 0.5023 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.6158, allocations: 0 / 0.5023 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.6162, allocations: 355.8 kB / 0.5026 GB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.865e-05/0.6163, allocations: 84.86 kB / 0.5027 GB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/0.6163, allocations: 3.422 kB / 0.5027 GB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.6165, allocations: 7.688 kB / 0.5027 GB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.705e-05/0.6166, allocations: 3.469 kB / 0.5027 GB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.6166, allocations: 7.906 kB / 0.5027 GB, free: 8.227 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.879e-05/0.6167, allocations: 97.33 kB / 0.5028 GB, free: 8.152 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6167, allocations: 0 / 0.5028 GB, free: 8.152 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004692/0.6172, allocations: 26.12 kB / 0.5029 GB, free: 8.148 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 (14): * Single equations (assignments): 14 * 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.0006341/0.6178, allocations: 1.027 MB / 0.5039 GB, free: 7.215 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002391/0.6181, allocations: 77.81 kB / 0.5039 GB, free: 7.203 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.6181, allocations: 0 / 0.5039 GB, free: 7.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.059e-05/0.6181, allocations: 22.84 kB / 0.504 GB, free: 7.199 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.6186, allocations: 33.59 kB / 0.504 GB, free: 7.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.6197, allocations: 338.8 kB / 0.5043 GB, free: 6.945 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001833/0.6199, allocations: 0.7158 MB / 0.505 GB, free: 6.246 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.155e-05/0.62, allocations: 11.36 kB / 0.505 GB, free: 6.242 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.71e-05/0.62, allocations: 37.61 kB / 0.5051 GB, free: 6.234 MB / 330.7 MB Notification: Performance of SimCode: time 8.31e-07/0.6201, allocations: 4 kB / 0.5051 GB, free: 6.23 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03814/0.6582, allocations: 2.013 MB / 0.507 GB, free: 6.016 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002837/0.6586, allocations: 191.5 kB / 0.5072 GB, free: 5.828 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.473/3.131, allocations: 3.906 kB / 0.5072 GB, free: 5.828 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat