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.001048/0.001048, allocations: 178.2 kB / 15.81 MB, free: 6.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.806/1.806, allocations: 205.4 MB / 222 MB, free: 13.74 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.001215/0.001215, allocations: 98.22 kB / 270.3 MB, free: 13.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09495/0.09495, allocations: 12.59 MB / 331.2 MB, free: 10.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004626/0.000463, allocations: 12.69 kB / 392.1 MB, free: 54.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1043, allocations: 50.38 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002224/0.1067, allocations: 1.658 MB / 444.1 MB, free: 9.133 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009554/0.1077, allocations: 0.5466 MB / 444.7 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.1079, allocations: 4 kB / 444.7 MB, free: 8.574 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001146/0.108, allocations: 15.86 kB / 444.7 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.1082, allocations: 19.8 kB / 444.7 MB, free: 8.539 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.1085, allocations: 47.95 kB / 444.8 MB, free: 8.492 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.1086, allocations: 111.6 kB / 444.9 MB, free: 8.383 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.1088, allocations: 45.05 kB / 444.9 MB, free: 8.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.109, allocations: 43.73 kB / 445 MB, free: 8.297 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.569e-05/0.109, allocations: 47.75 kB / 445 MB, free: 8.25 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.617e-05/0.1091, allocations: 4 kB / 445 MB, free: 8.246 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.808e-05/0.1091, allocations: 4 kB / 445 MB, free: 8.242 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.085e-05/0.1091, allocations: 23.92 kB / 445.1 MB, free: 8.219 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.769e-05/0.1092, allocations: 45.64 kB / 445.1 MB, free: 8.168 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.1093, allocations: 84.61 kB / 445.2 MB, free: 8.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1093, allocations: 0 / 445.2 MB, free: 8.086 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1093, allocations: 0 / 445.2 MB, free: 8.086 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.1093, allocations: 0 / 445.2 MB, free: 8.086 MB / 282.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.0006174/0.11, allocations: 415 kB / 445.6 MB, free: 7.633 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.11, allocations: 8.031 kB / 445.6 MB, free: 7.625 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.578e-05/0.1101, allocations: 50.5 kB / 445.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.1101, allocations: 15.81 kB / 445.7 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.1103, allocations: 208.6 kB / 445.9 MB, free: 7.309 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.1103, allocations: 11.94 kB / 445.9 MB, free: 7.297 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.673e-05/0.1104, allocations: 19.91 kB / 445.9 MB, free: 7.277 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004866/0.1108, allocations: 238.6 kB / 446.1 MB, free: 7.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.1109, allocations: 3.984 kB / 446.1 MB, free: 7.016 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.1109, allocations: 8 kB / 446.1 MB, free: 7.008 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1109, allocations: 7.984 kB / 446.1 MB, free: 7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/0.1112, allocations: 95.88 kB / 446.2 MB, free: 6.906 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005708/0.1118, allocations: 0.5921 MB / 446.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.1121, allocations: 151.7 kB / 447 MB, free: 6.062 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.1123, allocations: 82.62 kB / 447.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.1123, allocations: 8.125 kB / 447.1 MB, free: 5.965 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.1124, allocations: 34.56 kB / 447.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.1124, allocations: 4 kB / 447.1 MB, free: 5.918 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005094/0.1129, allocations: 201.5 kB / 447.3 MB, free: 5.715 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.1129, allocations: 114.9 kB / 447.4 MB, free: 5.578 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.117e-05/0.113, allocations: 134.1 kB / 447.5 MB, free: 5.438 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.113, allocations: 29.7 kB / 447.6 MB, free: 5.402 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.883e-05/0.1131, allocations: 111.9 kB / 447.7 MB, free: 5.289 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.01e-05/0.1131, allocations: 23.7 kB / 447.7 MB, free: 5.266 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-06/0.1131, allocations: 7.938 kB / 447.7 MB, free: 5.258 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.623e-05/0.1132, allocations: 322.8 kB / 448 MB, free: 4.934 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.1133, allocations: 44.34 kB / 448.1 MB, free: 4.891 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.1136, allocations: 150.1 kB / 448.2 MB, free: 4.699 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/0.1137, allocations: 63.88 kB / 448.3 MB, free: 4.637 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1137, allocations: 0 / 448.3 MB, free: 4.637 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003307/0.114, allocations: 205.5 kB / 448.5 MB, free: 4.43 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.1141, allocations: 12.06 kB / 448.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1141, allocations: 4 kB / 448.5 MB, free: 4.414 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.1141, allocations: 4 kB / 448.5 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.1142, allocations: 47.91 kB / 448.5 MB, free: 4.363 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.1143, allocations: 4 kB / 448.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.1144, allocations: 19.94 kB / 448.6 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.1144, allocations: 8 kB / 448.6 MB, free: 4.332 MB / 282.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 () * Number of clocked states: 1 (PI.x) * 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.818e-05/0.1145, allocations: 149.4 kB / 448.7 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.1146, allocations: 93.44 kB / 448.8 MB, free: 4.078 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.959e-05/0.1147, allocations: 12.72 kB / 448.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1147, allocations: 4 kB / 448.8 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.1148, allocations: 0 / 448.8 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.1148, allocations: 3.984 kB / 448.8 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00024/0.115, allocations: 197.6 kB / 449 MB, free: 3.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.115, allocations: 7.953 kB / 449 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.1152, allocations: 43.91 kB / 449.1 MB, free: 3.766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.1152, allocations: 4.234 kB / 449.1 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.1153, allocations: 4 kB / 449.1 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1153, allocations: 4 kB / 449.1 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1153, allocations: 0 / 449.1 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005916/0.1159, allocations: 403.5 kB / 449.5 MB, free: 3.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.229e-05/0.116, allocations: 96.88 kB / 449.6 MB, free: 3.227 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.116, allocations: 0 / 449.6 MB, free: 3.227 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.1162, allocations: 20.05 kB / 449.6 MB, free: 3.207 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.235e-05/0.1162, allocations: 4 kB / 449.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.1162, allocations: 7.984 kB / 449.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.356e-05/0.1163, allocations: 99.27 kB / 449.7 MB, free: 3.098 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1163, allocations: 0 / 449.7 MB, free: 3.098 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003442/0.1167, allocations: 24 kB / 449.7 MB, free: 3.074 MB / 282.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 () * Number of clocked states: 1 (PI.x) * 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.0007187/0.1174, allocations: 0.9349 MB / 450.7 MB, free: 2.105 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003318/0.1177, allocations: 121.9 kB / 450.8 MB, free: 1.988 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.1177, allocations: 4.062 kB / 450.8 MB, free: 1.984 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.6e-05/0.1178, allocations: 35.97 kB / 450.8 MB, free: 1.949 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004912/0.1183, allocations: 55.95 kB / 450.9 MB, free: 1.895 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.1199, allocations: 1.016 MB / 451.9 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.1201, allocations: 0.7202 MB / 452.6 MB, free: 36 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.362e-05/0.1202, allocations: 5.094 kB / 452.6 MB, free: 32 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.813e-05/0.1203, allocations: 35.42 kB / 452.7 MB, free: 16 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1203, allocations: 0 / 452.7 MB, free: 16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01475/0.135, allocations: 2.42 MB / 455.1 MB, free: 13.58 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.1353, allocations: 247.2 kB / 455.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.628/1.763, allocations: 0 / 455.3 MB, free: 13.32 MB / 298.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