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.002276/0.002281, allocations: 190.5 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.187/2.187, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001158/0.001158, allocations: 86.81 kB / 270.3 MB, free: 13.34 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.09876/0.09876, allocations: 12.59 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005541/0.0005542, allocations: 12.47 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09495/0.09554, allocations: 50.38 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002447/0.09803, allocations: 1.687 MB / 444.2 MB, free: 9.109 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009503/0.099, allocations: 0.5233 MB / 444.7 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.09913, allocations: 7.938 kB / 444.7 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.77e-05/0.09918, allocations: 7.922 kB / 444.7 MB, free: 8.562 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.09933, allocations: 27.88 kB / 444.7 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.09965, allocations: 39.95 kB / 444.8 MB, free: 8.496 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001672/0.09983, allocations: 95.83 kB / 444.9 MB, free: 8.402 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.09998, allocations: 33.47 kB / 444.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.111e-05/0.1001, allocations: 47.72 kB / 444.9 MB, free: 8.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.7e-05/0.1001, allocations: 43.78 kB / 445 MB, free: 8.277 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.1002, allocations: 4 kB / 445 MB, free: 8.273 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.434e-05/0.1002, allocations: 11.94 kB / 445 MB, free: 8.262 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.388e-05/0.1003, allocations: 19.92 kB / 445 MB, free: 8.242 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.569e-05/0.1003, allocations: 45.64 kB / 445.1 MB, free: 8.191 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.1004, allocations: 88.59 kB / 445.2 MB, free: 8.105 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.1004, allocations: 0 / 445.2 MB, free: 8.105 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1005, allocations: 0 / 445.2 MB, free: 8.105 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1005, allocations: 0 / 445.2 MB, free: 8.105 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005871/0.1011, allocations: 418.9 kB / 445.6 MB, free: 7.648 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1011, allocations: 8.031 kB / 445.6 MB, free: 7.641 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.692e-05/0.1012, allocations: 50.48 kB / 445.6 MB, free: 7.582 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.098e-05/0.1012, allocations: 15.81 kB / 445.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.1014, allocations: 210.8 kB / 445.8 MB, free: 7.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.1015, allocations: 15.94 kB / 445.9 MB, free: 7.305 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.45e-05/0.1015, allocations: 12 kB / 445.9 MB, free: 7.293 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005719/0.1021, allocations: 218.7 kB / 446.1 MB, free: 7.055 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.1021, allocations: 3.938 kB / 446.1 MB, free: 7.051 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.1022, allocations: 8 kB / 446.1 MB, free: 7.043 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1022, allocations: 0 / 446.1 MB, free: 7.043 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003851/0.1026, allocations: 99.81 kB / 446.2 MB, free: 6.945 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007072/0.1033, allocations: 0.5959 MB / 446.8 MB, free: 6.273 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.1037, allocations: 155.9 kB / 446.9 MB, free: 6.094 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.331e-05/0.1038, allocations: 16.19 kB / 447 MB, free: 6.078 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.1038, allocations: 30.56 kB / 447 MB, free: 6.039 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.154e-06/0.1038, allocations: 3.938 kB / 447 MB, free: 6.035 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007167/0.1045, allocations: 193.4 kB / 447.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.1046, allocations: 114.9 kB / 447.3 MB, free: 5.703 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.1047, allocations: 138.1 kB / 447.4 MB, free: 5.555 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.1048, allocations: 26.08 kB / 447.4 MB, free: 5.523 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.857e-05/0.1048, allocations: 119.9 kB / 447.6 MB, free: 5.402 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.1049, allocations: 27.66 kB / 447.6 MB, free: 5.375 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.1049, allocations: 0 / 447.6 MB, free: 5.375 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.757e-05/0.105, allocations: 334.7 kB / 447.9 MB, free: 5.039 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.1052, allocations: 48.34 kB / 448 MB, free: 4.992 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.1054, allocations: 142.4 kB / 448.1 MB, free: 4.805 MB / 282.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.0003745/0.1058, allocations: 149.1 kB / 448.2 MB, free: 4.641 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1058, allocations: 0 / 448.2 MB, free: 4.641 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005397/0.1063, allocations: 209.6 kB / 448.5 MB, free: 4.43 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.1064, allocations: 8 kB / 448.5 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.1064, allocations: 4 kB / 448.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.1064, allocations: 4 kB / 448.5 MB, free: 4.414 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002578/0.1067, allocations: 43.92 kB / 448.5 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.1067, allocations: 11.98 kB / 448.5 MB, free: 4.359 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.1069, allocations: 15.91 kB / 448.5 MB, free: 4.344 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.872e-05/0.1069, allocations: 12 kB / 448.6 MB, free: 4.332 MB / 282.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 () * 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 0.0001153/0.107, allocations: 145.5 kB / 448.7 MB, free: 4.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.1073, allocations: 89.44 kB / 448.8 MB, free: 4.086 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.903e-05/0.1073, allocations: 20.72 kB / 448.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.1073, allocations: 0 / 448.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.872e-06/0.1074, allocations: 4 kB / 448.8 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1074, allocations: 3.984 kB / 448.8 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004396/0.1078, allocations: 205.5 kB / 449 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.1078, allocations: 4 kB / 449 MB, free: 3.805 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006083/0.1085, allocations: 47.91 kB / 449.1 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/0.1085, allocations: 4 kB / 449.1 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/0.1086, allocations: 8 kB / 449.1 MB, free: 3.746 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1086, allocations: 0 / 449.1 MB, free: 3.746 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1086, allocations: 4 kB / 449.1 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.1098, allocations: 418.7 kB / 449.5 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.527e-05/0.1099, allocations: 93.05 kB / 449.6 MB, free: 3.191 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.847e-05/0.11, allocations: 11.94 kB / 449.6 MB, free: 3.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/0.1103, allocations: 7.984 kB / 449.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.439e-05/0.1104, allocations: 11.98 kB / 449.6 MB, free: 3.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.1105, allocations: 4 kB / 449.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001077/0.1106, allocations: 103.2 kB / 449.7 MB, free: 3.055 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.1106, allocations: 0 / 449.7 MB, free: 3.055 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009641/0.1116, allocations: 28.09 kB / 449.7 MB, free: 3.027 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.001726/0.1133, allocations: 1.088 MB / 450.8 MB, free: 1.898 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000733/0.1141, allocations: 139.9 kB / 451 MB, free: 1.762 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.1141, allocations: 0 / 451 MB, free: 1.762 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.1144, allocations: 28.92 kB / 451 MB, free: 1.734 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.1154, allocations: 67.95 kB / 451.1 MB, free: 1.668 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005166/0.1206, allocations: 3.309 MB / 454.4 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.1212, allocations: 0.7284 MB / 455.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.1214, allocations: 9.078 kB / 455.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.1215, allocations: 35.42 kB / 455.1 MB, free: 13.44 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1215, allocations: 0 / 455.1 MB, free: 13.44 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.1443, allocations: 2.615 MB / 457.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003001/0.1447, allocations: 239.4 kB / 458 MB, free: 10.59 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.541/2.686, allocations: 0 / 458 MB, free: 10.59 MB / 298.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