Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked",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.0009819/0.000982, allocations: 171.6 kB / 16.15 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.494/1.494, allocations: 205.4 MB / 222.3 MB, free: 9.016 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.0007799/0.00078, allocations: 94.16 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.07653/0.07653, allocations: 12.59 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003988/0.0003989, allocations: 16 kB / 392.8 MB, free: 65.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.106, allocations: 50.36 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001654/0.1077, allocations: 1.211 MB / 444.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003939/0.1081, allocations: 131.6 kB / 444.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.1083, allocations: 0 / 444.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.493e-05/0.1083, allocations: 0 / 444.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.1085, allocations: 11.94 kB / 444.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000271/0.1087, allocations: 35.91 kB / 444.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.469e-05/0.1088, allocations: 27.92 kB / 444.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.1089, allocations: 11.94 kB / 444.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.438e-05/0.109, allocations: 7.984 kB / 444.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.312e-05/0.109, allocations: 23.8 kB / 444.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.898e-05/0.1091, allocations: 0 / 444.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.292e-05/0.1091, allocations: 4 kB / 444.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.5e-05/0.1091, allocations: 7.984 kB / 444.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.12e-05/0.1092, allocations: 41.52 kB / 444.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.256e-05/0.1093, allocations: 39.83 kB / 444.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1093, allocations: 4 kB / 444.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1093, allocations: 0 / 444.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1093, allocations: 0 / 444.7 MB, free: 13.75 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004489/0.1098, allocations: 355.5 kB / 445 MB, free: 13.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.1098, allocations: 8.031 kB / 445 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.158e-05/0.1099, allocations: 34.75 kB / 445.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.027e-05/0.1099, allocations: 0.9375 kB / 445.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.1101, allocations: 196 kB / 445.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.1101, allocations: 4.375 kB / 445.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.1101, allocations: 4.375 kB / 445.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002344/0.1104, allocations: 93.61 kB / 445.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.1104, allocations: 3.938 kB / 445.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.1104, allocations: 0 / 445.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.1104, allocations: 0 / 445.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.172e-05/0.1105, allocations: 23.98 kB / 445.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002734/0.1108, allocations: 257.8 kB / 445.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.082e-05/0.1109, allocations: 53.09 kB / 445.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.535e-05/0.1109, allocations: 21.77 kB / 445.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.1109, allocations: 0 / 445.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.111, allocations: 38.5 kB / 445.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.111, allocations: 0 / 445.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002295/0.1112, allocations: 65.69 kB / 445.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.1113, allocations: 89.03 kB / 445.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.086e-05/0.1114, allocations: 138 kB / 446 MB, free: 12.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-06/0.1114, allocations: 25.7 kB / 446.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.411e-05/0.1114, allocations: 80.14 kB / 446.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.247e-06/0.1114, allocations: 7.938 kB / 446.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.1114, allocations: 8.156 kB / 446.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.605e-05/0.1115, allocations: 314.8 kB / 446.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.281e-05/0.1115, allocations: 4 kB / 446.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3e-05/0.1116, allocations: 25.7 kB / 446.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.927e-05/0.1116, allocations: 33.72 kB / 446.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1116, allocations: 3.938 kB / 446.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.831e-05/0.1117, allocations: 57.58 kB / 446.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1118, allocations: 8 kB / 446.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1118, allocations: 0 / 446.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1118, allocations: 8 kB / 446.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.48e-05/0.1119, allocations: 4 kB / 446.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.1119, allocations: 7.938 kB / 446.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.624e-05/0.1119, allocations: 0 / 446.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.1119, allocations: 4 kB / 446.6 MB, free: 11.54 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.932e-05/0.112, allocations: 122.6 kB / 446.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.318e-05/0.1121, allocations: 41.59 kB / 446.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.937e-05/0.1121, allocations: 15.81 kB / 446.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1121, allocations: 4.031 kB / 446.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1121, allocations: 8 kB / 446.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1121, allocations: 0 / 446.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000144/0.1123, allocations: 161.6 kB / 447 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1123, allocations: 0 / 447 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.888e-05/0.1123, allocations: 7.984 kB / 447 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1123, allocations: 7.938 kB / 447 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.1124, allocations: 4 kB / 447 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1124, allocations: 0 / 447 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1124, allocations: 0 / 447 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.1125, allocations: 160.3 kB / 447.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.1125, allocations: 97 kB / 447.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.1126, allocations: 0 / 447.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.828e-05/0.1126, allocations: 7.984 kB / 447.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.848e-05/0.1127, allocations: 4.031 kB / 447.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.1127, allocations: 0 / 447.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.854e-05/0.1127, allocations: 103.3 kB / 447.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1127, allocations: 0 / 447.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002048/0.1129, allocations: 4 kB / 447.4 MB, free: 10.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.00029/0.1132, allocations: 0.6936 MB / 448.1 MB, free: 9.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001146/0.1134, allocations: 19.98 kB / 448.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1134, allocations: 0 / 448.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.299e-05/0.1134, allocations: 16.09 kB / 448.1 MB, free: 9.945 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.1138, allocations: 20.02 kB / 448.1 MB, free: 9.926 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009385/0.1147, allocations: 1.291 MB / 449.4 MB, free: 8.539 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.1149, allocations: 0.6848 MB / 450.1 MB, free: 7.828 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.666e-05/0.1149, allocations: 256 / 450.1 MB, free: 7.828 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.997e-05/0.1149, allocations: 19.42 kB / 450.1 MB, free: 7.809 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.115, allocations: 4.031 kB / 450.1 MB, free: 7.805 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0125/0.1275, allocations: 1.163 MB / 451.3 MB, free: 6.637 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002519/0.1278, allocations: 233.2 kB / 451.5 MB, free: 6.379 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/1.815, allocations: 7.844 kB / 451.5 MB, free: 6.371 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat