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.001155/0.001154, allocations: 169.8 kB / 16.14 MB, free: 5.652 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.518/1.518, allocations: 205.4 MB / 222.3 MB, free: 9.012 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.0008046/0.0008046, allocations: 90.34 kB / 270.7 MB, free: 8.242 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.08698/0.08698, allocations: 12.6 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.0003959, allocations: 11.98 kB / 392.8 MB, free: 65.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.09859, allocations: 50.37 MB / 443.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002498/0.1011, allocations: 1.723 MB / 444.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1024, allocations: 0.5931 MB / 445.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.1026, allocations: 0 / 445.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.1027, allocations: 11.88 kB / 445.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002191/0.1029, allocations: 31.84 kB / 445.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.1033, allocations: 71.84 kB / 445.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.1035, allocations: 127.5 kB / 445.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.1037, allocations: 45.55 kB / 445.7 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.739e-05/0.1038, allocations: 47.77 kB / 445.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.083e-05/0.1039, allocations: 47.72 kB / 445.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.1039, allocations: 4 kB / 445.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.037e-05/0.104, allocations: 4 kB / 445.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.222e-05/0.104, allocations: 23.86 kB / 445.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.725e-05/0.1041, allocations: 89.3 kB / 445.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.1043, allocations: 119.8 kB / 446.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1043, allocations: 0 / 446.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.1043, allocations: 0 / 446.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5e-06/0.1043, allocations: 0 / 446.1 MB, free: 12.39 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006119/0.1049, allocations: 442.9 kB / 446.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.105, allocations: 8.031 kB / 446.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.023e-05/0.1051, allocations: 46.73 kB / 446.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.524e-05/0.1051, allocations: 20.66 kB / 446.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.1053, allocations: 223.9 kB / 446.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.1054, allocations: 12.38 kB / 446.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.1054, allocations: 20.31 kB / 446.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.1059, allocations: 258.6 kB / 447.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.1059, allocations: 0 / 447.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.106, allocations: 4 kB / 447.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.106, allocations: 4 kB / 447.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002492/0.1062, allocations: 99.88 kB / 447.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005581/0.1068, allocations: 0.6036 MB / 447.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003184/0.1071, allocations: 151.8 kB / 447.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.1073, allocations: 82.64 kB / 448 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.1073, allocations: 15.97 kB / 448 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.1073, allocations: 34.56 kB / 448.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.1073, allocations: 0 / 448.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005013/0.1078, allocations: 201.3 kB / 448.2 MB, free: 9.945 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.1079, allocations: 110.8 kB / 448.4 MB, free: 9.812 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.108, allocations: 166.1 kB / 448.5 MB, free: 9.641 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.1081, allocations: 29.7 kB / 448.5 MB, free: 9.605 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.1082, allocations: 116.5 kB / 448.7 MB, free: 9.488 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.966e-05/0.1082, allocations: 27.7 kB / 448.7 MB, free: 9.461 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.1082, allocations: 4 kB / 448.7 MB, free: 9.457 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.564e-05/0.1083, allocations: 314.8 kB / 449 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1084, allocations: 43.97 kB / 449 MB, free: 9.098 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.1086, allocations: 141.6 kB / 449.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.1088, allocations: 205.5 kB / 449.4 MB, free: 8.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1088, allocations: 0 / 449.4 MB, free: 8.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003418/0.1092, allocations: 209.1 kB / 449.6 MB, free: 8.449 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.1092, allocations: 4.625 kB / 449.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.1092, allocations: 4 kB / 449.6 MB, free: 8.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.1093, allocations: 8.469 kB / 449.6 MB, free: 8.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.1094, allocations: 56.22 kB / 449.7 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.1094, allocations: 7.984 kB / 449.7 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.1095, allocations: 23.84 kB / 449.7 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.1096, allocations: 8 kB / 449.7 MB, free: 8.34 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.772e-05/0.1097, allocations: 145.6 kB / 449.8 MB, free: 8.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.1098, allocations: 93.44 kB / 449.9 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.1099, allocations: 24.7 kB / 450 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1099, allocations: 4 kB / 450 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1099, allocations: 0 / 450 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1099, allocations: 0 / 450 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.1102, allocations: 213.5 kB / 450.2 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-06/0.1102, allocations: 0 / 450.2 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.1103, allocations: 39.91 kB / 450.2 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1104, allocations: 4 kB / 450.2 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1104, allocations: 4 kB / 450.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1104, allocations: 0 / 450.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1104, allocations: 8 kB / 450.2 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004472/0.1108, allocations: 411.2 kB / 450.6 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.1109, allocations: 104.9 kB / 450.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.1109, allocations: 4 kB / 450.7 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.1111, allocations: 11.98 kB / 450.7 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.264e-05/0.1111, allocations: 8.219 kB / 450.7 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.1111, allocations: 4 kB / 450.8 MB, free: 7.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.422e-05/0.1112, allocations: 123.3 kB / 450.9 MB, free: 7.059 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1112, allocations: 0 / 450.9 MB, free: 7.059 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002992/0.1115, allocations: 24 kB / 450.9 MB, free: 7.035 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.0006671/0.1122, allocations: 0.9368 MB / 451.8 MB, free: 6.066 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002967/0.1125, allocations: 127.8 kB / 452 MB, free: 5.941 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1125, allocations: 4 kB / 452 MB, free: 5.938 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.184e-05/0.1126, allocations: 36.91 kB / 452 MB, free: 5.902 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004848/0.1131, allocations: 64.12 kB / 452.1 MB, free: 5.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.1152, allocations: 2.233 MB / 454.3 MB, free: 3.422 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.1154, allocations: 0.7204 MB / 455 MB, free: 2.676 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.841e-05/0.1154, allocations: 13.42 kB / 455 MB, free: 2.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.502e-05/0.1155, allocations: 43.42 kB / 455.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.1155, allocations: 0 / 455.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01351/0.129, allocations: 2.624 MB / 457.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002256/0.1293, allocations: 256.8 kB / 457.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/1.842, allocations: 0 / 457.9 MB, free: 15.73 MB / 314.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