Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001001/0.001001, allocations: 175.3 kB / 15.82 MB, free: 6.305 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.668/1.668, allocations: 205.4 MB / 222 MB, free: 13.84 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.0008159/0.0008158, allocations: 102.2 kB / 270.3 MB, free: 13.36 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.08607/0.08607, allocations: 12.6 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004396/0.0004398, allocations: 12.78 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09844/0.0989, allocations: 50.39 MB / 442.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001994/0.1009, allocations: 1.686 MB / 444.2 MB, free: 9.164 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008896/0.1018, allocations: 0.5739 MB / 444.8 MB, free: 8.582 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.102, allocations: 0 / 444.8 MB, free: 8.582 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.1021, allocations: 15.86 kB / 444.8 MB, free: 8.566 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.1023, allocations: 35.78 kB / 444.8 MB, free: 8.531 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.1026, allocations: 59.86 kB / 444.9 MB, free: 8.473 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.1027, allocations: 115.6 kB / 445 MB, free: 8.359 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.1028, allocations: 45.52 kB / 445 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.052e-05/0.1029, allocations: 47.72 kB / 445.1 MB, free: 8.266 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.314e-05/0.103, allocations: 47.77 kB / 445.1 MB, free: 8.219 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.103, allocations: 4 kB / 445.1 MB, free: 8.215 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.007e-05/0.1031, allocations: 4 kB / 445.1 MB, free: 8.211 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.415e-05/0.1031, allocations: 23.92 kB / 445.1 MB, free: 8.188 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.38e-05/0.1032, allocations: 49.58 kB / 445.2 MB, free: 8.133 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.1033, allocations: 92.58 kB / 445.3 MB, free: 8.043 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.1033, allocations: 8 kB / 445.3 MB, free: 8.035 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1033, allocations: 0 / 445.3 MB, free: 8.035 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.738e-06/0.1033, allocations: 0 / 445.3 MB, free: 8.035 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005369/0.1039, allocations: 434.7 kB / 445.7 MB, free: 7.562 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.1039, allocations: 8.031 kB / 445.7 MB, free: 7.555 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.104, allocations: 46.55 kB / 445.8 MB, free: 7.5 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.324e-05/0.104, allocations: 19.72 kB / 445.8 MB, free: 7.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.1042, allocations: 214.7 kB / 446 MB, free: 7.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.1042, allocations: 12 kB / 446 MB, free: 7.219 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.1043, allocations: 16 kB / 446 MB, free: 7.203 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004521/0.1047, allocations: 266.3 kB / 446.3 MB, free: 6.918 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.1047, allocations: 0 / 446.3 MB, free: 6.918 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.1048, allocations: 8 kB / 446.3 MB, free: 6.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.1048, allocations: 4 kB / 446.3 MB, free: 6.906 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000232/0.105, allocations: 95.88 kB / 446.4 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004721/0.1055, allocations: 0.6037 MB / 447 MB, free: 6.137 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003051/0.1058, allocations: 155.9 kB / 447.1 MB, free: 5.957 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.106, allocations: 86.62 kB / 447.2 MB, free: 5.863 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.106, allocations: 4 kB / 447.2 MB, free: 5.859 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.106, allocations: 34.5 kB / 447.3 MB, free: 5.816 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.106, allocations: 0 / 447.3 MB, free: 5.816 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004948/0.1065, allocations: 197.6 kB / 447.5 MB, free: 5.617 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.1066, allocations: 111.2 kB / 447.6 MB, free: 5.484 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.1067, allocations: 162.2 kB / 447.7 MB, free: 5.316 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.1067, allocations: 29.7 kB / 447.8 MB, free: 5.281 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.933e-05/0.1068, allocations: 120.4 kB / 447.9 MB, free: 5.16 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.1068, allocations: 31.64 kB / 447.9 MB, free: 5.129 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.1068, allocations: 0 / 447.9 MB, free: 5.129 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.1069, allocations: 326.8 kB / 448.2 MB, free: 4.801 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.107, allocations: 36.34 kB / 448.3 MB, free: 4.766 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.1072, allocations: 142.4 kB / 448.4 MB, free: 4.578 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.1073, allocations: 71.95 kB / 448.5 MB, free: 4.508 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1073, allocations: 7.891 kB / 448.5 MB, free: 4.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003095/0.1076, allocations: 205.2 kB / 448.7 MB, free: 4.293 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.1076, allocations: 8 kB / 448.7 MB, free: 4.285 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1076, allocations: 4 kB / 448.7 MB, free: 4.281 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1077, allocations: 4 kB / 448.7 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.1078, allocations: 48.38 kB / 448.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.1078, allocations: 11.98 kB / 448.8 MB, free: 4.219 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.629e-05/0.1079, allocations: 27.83 kB / 448.8 MB, free: 4.191 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.108, allocations: 8 kB / 448.8 MB, free: 4.184 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 7.982e-05/0.108, allocations: 141.5 kB / 448.9 MB, free: 4.035 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.1082, allocations: 93.39 kB / 449 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.551e-05/0.1083, allocations: 24.7 kB / 449 MB, free: 3.914 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1083, allocations: 0 / 449 MB, free: 3.914 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1083, allocations: 4 kB / 449 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1083, allocations: 4 kB / 449 MB, free: 3.906 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001985/0.1085, allocations: 213.6 kB / 449.3 MB, free: 3.648 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1085, allocations: 0 / 449.3 MB, free: 3.648 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.1087, allocations: 43.88 kB / 449.3 MB, free: 3.605 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1087, allocations: 4 kB / 449.3 MB, free: 3.602 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.1087, allocations: 3.984 kB / 449.3 MB, free: 3.598 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1087, allocations: 4 kB / 449.3 MB, free: 3.594 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1087, allocations: 0 / 449.3 MB, free: 3.594 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000446/0.1092, allocations: 395.4 kB / 449.7 MB, free: 3.188 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.268e-05/0.1092, allocations: 104.9 kB / 449.8 MB, free: 3.066 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.1093, allocations: 11.95 kB / 449.8 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.1094, allocations: 11.92 kB / 449.8 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/0.1095, allocations: 8 kB / 449.8 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.605e-06/0.1095, allocations: 4.094 kB / 449.8 MB, free: 3.031 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.518e-05/0.1095, allocations: 119.2 kB / 450 MB, free: 2.914 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1095, allocations: 4.062 kB / 450 MB, free: 2.91 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002668/0.1098, allocations: 31.94 kB / 450 MB, free: 2.879 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.0005786/0.1104, allocations: 0.9232 MB / 450.9 MB, free: 1.922 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002805/0.1107, allocations: 131.8 kB / 451 MB, free: 1.793 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1107, allocations: 4 kB / 451 MB, free: 1.789 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.764e-05/0.1108, allocations: 28.92 kB / 451.1 MB, free: 1.762 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004586/0.1113, allocations: 71.86 kB / 451.1 MB, free: 1.691 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.1126, allocations: 1.073 MB / 452.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.1128, allocations: 0.7245 MB / 452.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.715e-05/0.1129, allocations: 17.41 kB / 453 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.93e-05/0.1129, allocations: 39.42 kB / 453 MB, free: 15.71 MB / 298.7 MB Notification: Performance of SimCode: time 1.873e-06/0.113, allocations: 0 / 453 MB, free: 15.71 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01247/0.1254, allocations: 2.601 MB / 455.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001729/0.1256, allocations: 247.1 kB / 455.8 MB, free: 12.87 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.666/1.791, allocations: 0 / 455.8 MB, free: 12.87 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat