Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.001739/0.001744, allocations: 184.6 kB / 15.81 MB, free: 6.348 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.203/2.203, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001578/0.001578, allocations: 94.84 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.1058/0.1058, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005734/0.0005735, allocations: 18.84 kB / 392.1 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.09568, allocations: 50.38 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002431/0.09817, allocations: 1.632 MB / 444.1 MB, free: 9.168 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009846/0.09919, allocations: 0.5194 MB / 444.6 MB, free: 8.641 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.98e-05/0.09931, allocations: 4 kB / 444.6 MB, free: 8.637 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.156e-05/0.09937, allocations: 11.86 kB / 444.6 MB, free: 8.625 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.0995, allocations: 23.94 kB / 444.7 MB, free: 8.602 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003486/0.09986, allocations: 55.83 kB / 444.7 MB, free: 8.547 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001533/0.1, allocations: 83.84 kB / 444.8 MB, free: 8.465 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.1002, allocations: 44.86 kB / 444.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.192e-05/0.1003, allocations: 39.84 kB / 444.9 MB, free: 8.383 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.94e-05/0.1003, allocations: 39.78 kB / 444.9 MB, free: 8.344 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.1004, allocations: 8 kB / 444.9 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.279e-05/0.1004, allocations: 4 kB / 444.9 MB, free: 8.332 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.691e-05/0.1004, allocations: 23.91 kB / 445 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.955e-05/0.1005, allocations: 45.64 kB / 445 MB, free: 8.258 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.1007, allocations: 80.61 kB / 445.1 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1007, allocations: 0 / 445.1 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1007, allocations: 0 / 445.1 MB, free: 8.18 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.1007, allocations: 0 / 445.1 MB, free: 8.18 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005857/0.1013, allocations: 407 kB / 445.5 MB, free: 7.734 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1013, allocations: 16.02 kB / 445.5 MB, free: 7.719 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/0.1014, allocations: 46.5 kB / 445.5 MB, free: 7.664 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.1015, allocations: 15.81 kB / 445.6 MB, free: 7.648 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.1016, allocations: 202.9 kB / 445.8 MB, free: 7.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.1017, allocations: 8 kB / 445.8 MB, free: 7.402 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/0.1017, allocations: 19.84 kB / 445.8 MB, free: 7.383 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005772/0.1023, allocations: 228.5 kB / 446 MB, free: 7.137 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.1023, allocations: 3.938 kB / 446 MB, free: 7.133 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.1024, allocations: 4 kB / 446 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.1024, allocations: 4 kB / 446 MB, free: 7.125 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003846/0.1028, allocations: 95.88 kB / 446.1 MB, free: 7.031 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006274/0.1034, allocations: 0.596 MB / 446.7 MB, free: 6.359 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.1038, allocations: 148.1 kB / 446.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.1038, allocations: 7.938 kB / 446.9 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.1039, allocations: 34.56 kB / 446.9 MB, free: 6.137 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.854e-06/0.1039, allocations: 8 kB / 446.9 MB, free: 6.129 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007265/0.1046, allocations: 185.4 kB / 447.1 MB, free: 5.941 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.1047, allocations: 122.9 kB / 447.2 MB, free: 5.797 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.759e-05/0.1048, allocations: 130.1 kB / 447.3 MB, free: 5.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.1048, allocations: 25.7 kB / 447.4 MB, free: 5.629 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.145e-05/0.1049, allocations: 108 kB / 447.5 MB, free: 5.52 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.1049, allocations: 27.64 kB / 447.5 MB, free: 5.492 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.107e-05/0.1049, allocations: 8 kB / 447.5 MB, free: 5.484 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.256e-05/0.105, allocations: 318.8 kB / 447.8 MB, free: 5.164 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.1052, allocations: 47.92 kB / 447.9 MB, free: 5.117 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.1054, allocations: 140.7 kB / 448 MB, free: 4.934 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.1056, allocations: 60.11 kB / 448 MB, free: 4.875 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.1057, allocations: 4 kB / 448.1 MB, free: 4.871 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005242/0.1062, allocations: 201.2 kB / 448.2 MB, free: 4.668 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1062, allocations: 4 kB / 448.3 MB, free: 4.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1062, allocations: 4.438 kB / 448.3 MB, free: 4.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1063, allocations: 8 kB / 448.3 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.1066, allocations: 43.92 kB / 448.3 MB, free: 4.609 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.1066, allocations: 7.984 kB / 448.3 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.1067, allocations: 23.84 kB / 448.3 MB, free: 4.578 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.1068, allocations: 8 kB / 448.3 MB, free: 4.57 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001026/0.1069, allocations: 137.5 kB / 448.5 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.1071, allocations: 89.91 kB / 448.6 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.699e-05/0.1071, allocations: 16.8 kB / 448.6 MB, free: 4.316 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1071, allocations: 7.938 kB / 448.6 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1072, allocations: 0 / 448.6 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.1072, allocations: 0 / 448.6 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002862/0.1075, allocations: 205.5 kB / 448.8 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1075, allocations: 4 kB / 448.8 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.1078, allocations: 31.98 kB / 448.8 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/0.1078, allocations: 0 / 448.8 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.1078, allocations: 11.98 kB / 448.8 MB, free: 4.012 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1079, allocations: 8 kB / 448.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1079, allocations: 0 / 448.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007265/0.1086, allocations: 406.8 kB / 449.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.1086, allocations: 92.89 kB / 449.3 MB, free: 3.465 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.1087, allocations: 8 kB / 449.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.1089, allocations: 12.05 kB / 449.4 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.109, allocations: 15.92 kB / 449.4 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.109, allocations: 7.953 kB / 449.4 MB, free: 3.422 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.994e-05/0.109, allocations: 95.27 kB / 449.5 MB, free: 3.328 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1091, allocations: 0 / 449.5 MB, free: 3.328 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004311/0.1095, allocations: 24 kB / 449.5 MB, free: 3.305 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 (14): * Single equations (assignments): 14 * 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.0008974/0.1104, allocations: 1.078 MB / 450.6 MB, free: 2.188 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004703/0.1109, allocations: 128.6 kB / 450.7 MB, free: 2.062 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.1109, allocations: 0 / 450.7 MB, free: 2.062 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.1111, allocations: 31.92 kB / 450.7 MB, free: 2.031 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004925/0.1116, allocations: 59.86 kB / 450.8 MB, free: 1.973 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.1143, allocations: 3.089 MB / 453.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.1147, allocations: 0.7204 MB / 454.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.488e-05/0.1148, allocations: 16.59 kB / 454.6 MB, free: 14.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.872e-05/0.1149, allocations: 31.42 kB / 454.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of SimCode: time 1.403e-06/0.1149, allocations: 7.938 kB / 454.7 MB, free: 13.97 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.1357, allocations: 2.367 MB / 457 MB, free: 11.61 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003196/0.1361, allocations: 237.8 kB / 457.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.406/2.542, allocations: 4 kB / 457.3 MB, free: 11.36 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat