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.001128/0.001128, allocations: 171.7 kB / 16.14 MB, free: 5.656 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.522/1.522, allocations: 205.4 MB / 222.3 MB, free: 8.93 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.0008875/0.0008877, allocations: 95.84 kB / 270.7 MB, free: 8.23 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.08676/0.08676, allocations: 12.59 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004007/0.000401, allocations: 11.98 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.09989, allocations: 50.37 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002241/0.1022, allocations: 1.74 MB / 444.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007404/0.1029, allocations: 0.5386 MB / 445.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.1031, allocations: 0 / 445.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.1032, allocations: 15.86 kB / 445.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.714e-05/0.1032, allocations: 15.84 kB / 445.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.1035, allocations: 55.88 kB / 445.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.1037, allocations: 119.6 kB / 445.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.1038, allocations: 53.69 kB / 445.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.707e-05/0.1039, allocations: 39.73 kB / 445.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.955e-05/0.104, allocations: 55.64 kB / 445.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.289e-05/0.104, allocations: 7.984 kB / 445.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.85e-05/0.104, allocations: 4 kB / 445.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.442e-05/0.1041, allocations: 15.94 kB / 445.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.027e-05/0.1042, allocations: 81.38 kB / 445.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.1043, allocations: 111.6 kB / 446 MB, free: 12.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1043, allocations: 0 / 446 MB, free: 12.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1043, allocations: 0 / 446 MB, free: 12.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.1043, allocations: 0 / 446 MB, free: 12.46 MB / 298.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.000499/0.1048, allocations: 415.1 kB / 446.4 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1049, allocations: 11.97 kB / 446.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.383e-05/0.1049, allocations: 50.73 kB / 446.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.952e-05/0.105, allocations: 16.75 kB / 446.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.1052, allocations: 216 kB / 446.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.1052, allocations: 12.31 kB / 446.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.1052, allocations: 12.38 kB / 446.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.1056, allocations: 226.8 kB / 446.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.1056, allocations: 3.938 kB / 446.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.1057, allocations: 4 kB / 446.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1057, allocations: 4 kB / 446.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.1059, allocations: 103.9 kB / 447 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000488/0.1064, allocations: 0.592 MB / 447.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.1067, allocations: 155.9 kB / 447.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.1068, allocations: 86.52 kB / 447.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.1069, allocations: 7.969 kB / 447.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.1069, allocations: 42.56 kB / 447.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.1069, allocations: 0 / 447.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004616/0.1074, allocations: 193.4 kB / 448.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.1074, allocations: 111.2 kB / 448.2 MB, free: 9.957 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.703e-05/0.1075, allocations: 138.1 kB / 448.3 MB, free: 9.809 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.022e-05/0.1075, allocations: 29.64 kB / 448.4 MB, free: 9.773 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.214e-05/0.1076, allocations: 119.9 kB / 448.5 MB, free: 9.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.1076, allocations: 27.64 kB / 448.5 MB, free: 9.625 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/0.1076, allocations: 8 kB / 448.5 MB, free: 9.617 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.955e-05/0.1077, allocations: 326.8 kB / 448.8 MB, free: 9.289 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.1078, allocations: 43.97 kB / 448.9 MB, free: 9.246 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.1079, allocations: 145.6 kB / 449 MB, free: 9.055 MB / 298.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 = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.1083, allocations: 294.6 kB / 449.3 MB, free: 8.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1083, allocations: 0 / 449.3 MB, free: 8.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000317/0.1086, allocations: 209.2 kB / 449.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.1087, allocations: 8 kB / 449.5 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1087, allocations: 3.984 kB / 449.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.1087, allocations: 8 kB / 449.5 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.1089, allocations: 44.39 kB / 449.6 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.1089, allocations: 8 kB / 449.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.591e-05/0.109, allocations: 27.83 kB / 449.6 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.109, allocations: 8 kB / 449.6 MB, free: 8.383 MB / 298.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 = PI.y_start. 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.48e-05/0.1091, allocations: 133.7 kB / 449.8 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.1092, allocations: 93.52 kB / 449.8 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.644e-05/0.1093, allocations: 16.72 kB / 449.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.1093, allocations: 0 / 449.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1093, allocations: 4 kB / 449.9 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1093, allocations: 4 kB / 449.9 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1095, allocations: 213.4 kB / 450.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1095, allocations: 0 / 450.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002017/0.1097, allocations: 51.91 kB / 450.1 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1097, allocations: 0 / 450.1 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.1098, allocations: 4 kB / 450.1 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.1098, allocations: 0 / 450.1 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1098, allocations: 3.938 kB / 450.1 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004582/0.1102, allocations: 415.2 kB / 450.5 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.892e-05/0.1103, allocations: 85.05 kB / 450.6 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.1103, allocations: 8 kB / 450.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.1104, allocations: 11.98 kB / 450.6 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.1105, allocations: 4.094 kB / 450.6 MB, free: 7.254 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.1105, allocations: 16.16 kB / 450.7 MB, free: 7.238 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.688e-05/0.1106, allocations: 95.27 kB / 450.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1106, allocations: 4.062 kB / 450.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002893/0.1109, allocations: 32 kB / 450.8 MB, free: 7.109 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006656/0.1115, allocations: 0.927 MB / 451.7 MB, free: 6.148 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003072/0.1118, allocations: 139.8 kB / 451.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1119, allocations: 0 / 451.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.352e-05/0.112, allocations: 28.92 kB / 451.9 MB, free: 5.984 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004655/0.1124, allocations: 71.94 kB / 452 MB, free: 5.914 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.1144, allocations: 2.202 MB / 454.2 MB, free: 3.531 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.1146, allocations: 0.7126 MB / 454.9 MB, free: 2.793 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.216e-05/0.1146, allocations: 17.08 kB / 454.9 MB, free: 2.777 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.1147, allocations: 35.42 kB / 454.9 MB, free: 2.742 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.1147, allocations: 0 / 454.9 MB, free: 2.742 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01211/0.1268, allocations: 2.668 MB / 457.6 MB, free: 68 kB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003285/0.1272, allocations: 260.4 kB / 457.8 MB, free: 15.71 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.71/1.837, allocations: 11.88 kB / 457.9 MB, free: 15.7 MB / 314.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