Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.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.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock",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.001744/0.001744, allocations: 170.1 kB / 15.81 MB, free: 6.285 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.531/1.531, allocations: 205.4 MB / 222 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.0007299/0.00073, allocations: 102.2 kB / 270.3 MB, free: 13.35 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.07751/0.07751, allocations: 12.6 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005368/0.0005368, allocations: 13.19 kB / 392.1 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1068, allocations: 50.38 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.00107/0.108, allocations: 0.5523 MB / 443 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003093/0.1083, allocations: 123.7 kB / 443.2 MB, free: 10.15 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.419e-05/0.1084, allocations: 0 / 443.2 MB, free: 10.15 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.954e-05/0.1085, allocations: 7.938 kB / 443.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.1086, allocations: 11.88 kB / 443.2 MB, free: 10.13 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.1088, allocations: 37.7 kB / 443.2 MB, free: 10.1 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.005e-05/0.1089, allocations: 39.86 kB / 443.3 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.924e-05/0.109, allocations: 15.98 kB / 443.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.449e-05/0.109, allocations: 7.938 kB / 443.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.868e-05/0.1091, allocations: 19.92 kB / 443.3 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.1091, allocations: 3.938 kB / 443.3 MB, free: 10.01 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.138e-05/0.1091, allocations: 7.938 kB / 443.3 MB, free: 10 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.725e-05/0.1091, allocations: 11.98 kB / 443.3 MB, free: 9.992 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.122e-05/0.1092, allocations: 37.64 kB / 443.4 MB, free: 9.949 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 6.845e-05/0.1092, allocations: 35.92 kB / 443.4 MB, free: 9.914 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1093, allocations: 0 / 443.4 MB, free: 9.914 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1093, allocations: 4 kB / 443.4 MB, free: 9.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.1093, allocations: 0 / 443.4 MB, free: 9.91 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004118/0.1097, allocations: 355.9 kB / 443.8 MB, free: 9.516 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.1097, allocations: 8.031 kB / 443.8 MB, free: 9.508 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.885e-05/0.1098, allocations: 46.55 kB / 443.8 MB, free: 9.453 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.71e-05/0.1098, allocations: 7.906 kB / 443.8 MB, free: 9.445 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.11, allocations: 194.8 kB / 444 MB, free: 9.215 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.11, allocations: 3.953 kB / 444 MB, free: 9.211 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.11, allocations: 8 kB / 444 MB, free: 9.203 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.1103, allocations: 139.3 kB / 444.2 MB, free: 9.055 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1103, allocations: 4 kB / 444.2 MB, free: 9.051 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.1103, allocations: 7.938 kB / 444.2 MB, free: 9.043 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.1103, allocations: 0 / 444.2 MB, free: 9.043 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.498e-05/0.1104, allocations: 19.98 kB / 444.2 MB, free: 9.023 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.1105, allocations: 177.5 kB / 444.4 MB, free: 8.801 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.1107, allocations: 78.69 kB / 444.4 MB, free: 8.715 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.02e-05/0.1108, allocations: 44.83 kB / 444.5 MB, free: 8.668 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.1108, allocations: 4 kB / 444.5 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.1108, allocations: 34.56 kB / 444.5 MB, free: 8.621 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 9.51e-07/0.1108, allocations: 0 / 444.5 MB, free: 8.621 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001894/0.111, allocations: 93.58 kB / 444.6 MB, free: 8.523 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/0.1111, allocations: 63.34 kB / 444.7 MB, free: 8.449 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.906e-05/0.1112, allocations: 140.7 kB / 444.8 MB, free: 8.301 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.938e-06/0.1112, allocations: 25.7 kB / 444.8 MB, free: 8.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.745e-05/0.1112, allocations: 92.14 kB / 444.9 MB, free: 8.176 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.346e-05/0.1112, allocations: 7.984 kB / 444.9 MB, free: 8.168 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/0.1113, allocations: 0 / 444.9 MB, free: 8.168 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.55e-05/0.1113, allocations: 318.8 kB / 445.2 MB, free: 7.848 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.71e-05/0.1113, allocations: 11.92 kB / 445.3 MB, free: 7.836 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.811e-05/0.1114, allocations: 58.81 kB / 445.3 MB, free: 7.754 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.339e-05/0.1114, allocations: 23.98 kB / 445.3 MB, free: 7.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.1114, allocations: 0 / 445.3 MB, free: 7.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000117/0.1116, allocations: 101.4 kB / 445.4 MB, free: 7.625 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.1116, allocations: 4 kB / 445.4 MB, free: 7.621 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.1116, allocations: 8 kB / 445.4 MB, free: 7.613 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1116, allocations: 3.984 kB / 445.4 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.768e-05/0.1117, allocations: 15.94 kB / 445.5 MB, free: 7.594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.1117, allocations: 4 kB / 445.5 MB, free: 7.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.275e-05/0.1118, allocations: 7.938 kB / 445.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.353e-06/0.1118, allocations: 4 kB / 445.5 MB, free: 7.578 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 8.289e-05/0.1119, allocations: 133.8 kB / 445.6 MB, free: 7.438 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.341e-05/0.1119, allocations: 85.62 kB / 445.7 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.889e-05/0.112, allocations: 20.7 kB / 445.7 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.112, allocations: 0 / 445.7 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.112, allocations: 0 / 445.7 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.112, allocations: 4 kB / 445.7 MB, free: 7.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.1121, allocations: 169.6 kB / 445.9 MB, free: 7.105 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1121, allocations: 0 / 445.9 MB, free: 7.105 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.659e-05/0.1122, allocations: 15.98 kB / 445.9 MB, free: 7.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1122, allocations: 3.953 kB / 445.9 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.1122, allocations: 4 kB / 445.9 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1122, allocations: 3.938 kB / 445.9 MB, free: 7.078 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1123, allocations: 4 kB / 445.9 MB, free: 7.074 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001106/0.1124, allocations: 109.3 kB / 446 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.824e-05/0.1124, allocations: 93 kB / 446.1 MB, free: 6.84 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.1124, allocations: 3.953 kB / 446.1 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.312e-05/0.1125, allocations: 8 kB / 446.1 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-06/0.1125, allocations: 0 / 446.1 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.1125, allocations: 4 kB / 446.1 MB, free: 6.824 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.756e-05/0.1126, allocations: 107.2 kB / 446.2 MB, free: 6.719 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1126, allocations: 0 / 446.2 MB, free: 6.719 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001949/0.1128, allocations: 8 kB / 446.2 MB, free: 6.711 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0003866/0.1132, allocations: 0.6712 MB / 446.9 MB, free: 6.008 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.1133, allocations: 51.91 kB / 447 MB, free: 5.957 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1133, allocations: 3.938 kB / 447 MB, free: 5.953 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.1133, allocations: 0 / 447 MB, free: 5.953 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.1136, allocations: 59.64 kB / 447 MB, free: 5.898 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006184/0.1142, allocations: 0.5345 MB / 447.6 MB, free: 5.293 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.1144, allocations: 0.6977 MB / 448.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.129e-05/0.1144, allocations: 4.656 kB / 448.3 MB, free: 4.566 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.311e-05/0.1145, allocations: 27.38 kB / 448.3 MB, free: 4.539 MB / 282.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1145, allocations: 0 / 448.3 MB, free: 4.539 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01143/0.1259, allocations: 1.573 MB / 449.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.1262, allocations: 214.9 kB / 450.1 MB, free: 2.734 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.541/1.667, allocations: 0 / 450.1 MB, free: 2.734 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat