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.001471/0.001471, allocations: 170.7 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.512/1.512, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0008187/0.0008189, allocations: 85.48 kB / 270.6 MB, free: 8.238 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.08061/0.08061, allocations: 12.6 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003939, allocations: 8 kB / 392.8 MB, free: 65.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1029, allocations: 50.37 MB / 443.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.001092/0.104, allocations: 0.5586 MB / 443.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003256/0.1044, allocations: 119.7 kB / 443.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.591e-05/0.1045, allocations: 0 / 443.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.663e-05/0.1046, allocations: 3.938 kB / 443.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.1047, allocations: 16 kB / 443.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.1049, allocations: 39.89 kB / 443.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.267e-05/0.105, allocations: 39.86 kB / 443.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.1051, allocations: 19.92 kB / 443.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.52e-05/0.1052, allocations: 7.938 kB / 443.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.284e-05/0.1052, allocations: 19.92 kB / 444 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.1053, allocations: 0 / 444 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.103e-05/0.1053, allocations: 8 kB / 444 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.275e-05/0.1053, allocations: 19.91 kB / 444 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.196e-05/0.1054, allocations: 49.45 kB / 444 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.103e-05/0.1055, allocations: 47.81 kB / 444.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1055, allocations: 0 / 444.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1055, allocations: 0 / 444.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.1055, allocations: 0 / 444.1 MB, free: 14.36 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003628/0.1058, allocations: 367.4 kB / 444.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1059, allocations: 11.97 kB / 444.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.104e-05/0.1059, allocations: 46.73 kB / 444.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.543e-05/0.106, allocations: 8.844 kB / 444.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.1061, allocations: 192.2 kB / 444.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.1061, allocations: 384 / 444.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.1062, allocations: 8.375 kB / 444.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002357/0.1064, allocations: 143.7 kB / 444.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1064, allocations: 3.938 kB / 444.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.1064, allocations: 12 kB / 444.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.1064, allocations: 0 / 444.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.252e-05/0.1065, allocations: 19.98 kB / 444.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001035/0.1066, allocations: 173.6 kB / 445.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.1067, allocations: 78.64 kB / 445.1 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.369e-05/0.1068, allocations: 36.89 kB / 445.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.544e-06/0.1068, allocations: 8 kB / 445.2 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.351e-05/0.1068, allocations: 38.55 kB / 445.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.1068, allocations: 0 / 445.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001741/0.107, allocations: 101.7 kB / 445.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.1071, allocations: 67.25 kB / 445.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.909e-05/0.1071, allocations: 135.9 kB / 445.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.597e-06/0.1072, allocations: 29.7 kB / 445.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.379e-05/0.1072, allocations: 92.12 kB / 445.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.331e-05/0.1072, allocations: 4 kB / 445.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-06/0.1072, allocations: 0 / 445.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.261e-05/0.1073, allocations: 318.8 kB / 445.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.667e-05/0.1073, allocations: 11.98 kB / 446 MB, free: 12.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.372e-05/0.1073, allocations: 62.8 kB / 446 MB, free: 12.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.359e-05/0.1074, allocations: 74.75 kB / 446.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1074, allocations: 0 / 446.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001033/0.1075, allocations: 97.39 kB / 446.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.1075, allocations: 7.938 kB / 446.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1075, allocations: 4 kB / 446.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.1076, allocations: 4 kB / 446.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.931e-05/0.1076, allocations: 12 kB / 446.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.1076, allocations: 4.25 kB / 446.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.448e-05/0.1077, allocations: 7.984 kB / 446.2 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.1077, allocations: 7.938 kB / 446.2 MB, free: 11.93 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.561e-05/0.1078, allocations: 126.7 kB / 446.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.1079, allocations: 85.83 kB / 446.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.152e-05/0.1079, allocations: 20.7 kB / 446.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1079, allocations: 0 / 446.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1079, allocations: 0 / 446.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.1079, allocations: 4 kB / 446.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.691e-05/0.108, allocations: 177.5 kB / 446.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.108, allocations: 0 / 446.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.335e-05/0.1081, allocations: 11.94 kB / 446.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1081, allocations: 7.938 kB / 446.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.1081, allocations: 0 / 446.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1081, allocations: 80 / 446.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1081, allocations: 3.984 kB / 446.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.672e-05/0.1082, allocations: 109 kB / 446.8 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.1083, allocations: 108.9 kB / 446.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.1083, allocations: 0 / 446.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.181e-05/0.1083, allocations: 3.984 kB / 446.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-06/0.1083, allocations: 0 / 446.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.1083, allocations: 12 kB / 446.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.714e-05/0.1084, allocations: 105.8 kB / 447 MB, free: 11.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1084, allocations: 0 / 447 MB, free: 11.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001788/0.1086, allocations: 8 kB / 447 MB, free: 11.07 MB / 298.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 (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.0003079/0.1089, allocations: 0.6748 MB / 447.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.517e-05/0.109, allocations: 47.91 kB / 447.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.109, allocations: 8.125 kB / 447.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.52e-07/0.109, allocations: 4.562 kB / 447.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.1093, allocations: 53.3 kB / 447.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007719/0.1101, allocations: 1.381 MB / 449.2 MB, free: 8.738 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001243/0.1102, allocations: 0.7005 MB / 449.9 MB, free: 8.012 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.456e-05/0.1102, allocations: 0.6719 kB / 449.9 MB, free: 8.012 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.517e-05/0.1103, allocations: 23.42 kB / 449.9 MB, free: 7.988 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1103, allocations: 3.938 kB / 449.9 MB, free: 7.984 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01024/0.1205, allocations: 1.581 MB / 451.5 MB, free: 6.395 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001615/0.1207, allocations: 222.8 kB / 451.7 MB, free: 6.145 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.615/1.736, allocations: 0 / 451.7 MB, free: 6.145 MB / 298.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