Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.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.RealSignals.UpSample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample1",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.001017/0.001017, allocations: 171.7 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.484/1.484, allocations: 205.4 MB / 222 MB, free: 13.76 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.0009002/0.0009006, allocations: 94.28 kB / 270.3 MB, free: 13.29 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.07498/0.07498, allocations: 12.59 MB / 331.2 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004697/0.0004707, allocations: 18.92 kB / 392.1 MB, free: 54.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1075, allocations: 50.38 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.001931/0.1095, allocations: 1.421 MB / 443.9 MB, free: 9.383 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008053/0.1103, allocations: 0.5623 MB / 444.5 MB, free: 8.812 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.1104, allocations: 7.938 kB / 444.5 MB, free: 8.805 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.512e-05/0.1105, allocations: 3.938 kB / 444.5 MB, free: 8.801 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.1106, allocations: 11.86 kB / 444.5 MB, free: 8.789 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003727/0.111, allocations: 83.84 kB / 444.6 MB, free: 8.707 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.1111, allocations: 75.77 kB / 444.7 MB, free: 8.633 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.1113, allocations: 29.11 kB / 444.7 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.596e-05/0.1114, allocations: 35.78 kB / 444.7 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.915e-05/0.1114, allocations: 35.83 kB / 444.8 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.1115, allocations: 4 kB / 444.8 MB, free: 8.531 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.809e-05/0.1115, allocations: 7.938 kB / 444.8 MB, free: 8.523 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.533e-05/0.1115, allocations: 15.92 kB / 444.8 MB, free: 8.508 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.219e-05/0.1116, allocations: 49.58 kB / 444.8 MB, free: 8.453 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.1117, allocations: 68.42 kB / 444.9 MB, free: 8.387 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1117, allocations: 0 / 444.9 MB, free: 8.387 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1117, allocations: 4 kB / 444.9 MB, free: 8.383 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.1117, allocations: 0 / 444.9 MB, free: 8.383 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005265/0.1123, allocations: 395.2 kB / 445.3 MB, free: 7.949 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.1123, allocations: 8.031 kB / 445.3 MB, free: 7.941 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.943e-05/0.1124, allocations: 46.55 kB / 445.4 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.1124, allocations: 15.81 kB / 445.4 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002262/0.1126, allocations: 210.8 kB / 445.6 MB, free: 7.625 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.101e-05/0.1127, allocations: 11.94 kB / 445.6 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.286e-05/0.1127, allocations: 16 kB / 445.6 MB, free: 7.598 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.1132, allocations: 277.2 kB / 445.9 MB, free: 7.305 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.1132, allocations: 4 kB / 445.9 MB, free: 7.301 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.1132, allocations: 4 kB / 445.9 MB, free: 7.297 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.1132, allocations: 0 / 445.9 MB, free: 7.297 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001298/0.1134, allocations: 55.91 kB / 445.9 MB, free: 7.242 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003139/0.1137, allocations: 302.5 kB / 446.2 MB, free: 6.891 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.1139, allocations: 147.8 kB / 446.4 MB, free: 6.719 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.114, allocations: 70.5 kB / 446.4 MB, free: 6.641 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.1141, allocations: 12.11 kB / 446.5 MB, free: 6.629 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.1141, allocations: 34.56 kB / 446.5 MB, free: 6.586 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 1.483e-06/0.1141, allocations: 0 / 446.5 MB, free: 6.586 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003733/0.1145, allocations: 177.3 kB / 446.7 MB, free: 6.406 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.1146, allocations: 114.8 kB / 446.8 MB, free: 6.27 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.1147, allocations: 146.2 kB / 446.9 MB, free: 6.113 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.1147, allocations: 33.7 kB / 447 MB, free: 6.074 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.746e-05/0.1147, allocations: 99.98 kB / 447.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.1148, allocations: 16.17 kB / 447.1 MB, free: 5.957 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.959e-06/0.1148, allocations: 4 kB / 447.1 MB, free: 5.953 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.227e-05/0.1148, allocations: 330.8 kB / 447.4 MB, free: 5.621 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.435e-05/0.1149, allocations: 28.34 kB / 447.4 MB, free: 5.594 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.546e-05/0.115, allocations: 143 kB / 447.6 MB, free: 5.406 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.193e-05/0.1151, allocations: 43.94 kB / 447.6 MB, free: 5.363 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1151, allocations: 0 / 447.6 MB, free: 5.363 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002352/0.1154, allocations: 189.7 kB / 447.8 MB, free: 5.172 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.1154, allocations: 8 kB / 447.8 MB, free: 5.164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1154, allocations: 8 kB / 447.8 MB, free: 5.156 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.1154, allocations: 4 kB / 447.8 MB, free: 5.152 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.1155, allocations: 31.92 kB / 447.8 MB, free: 5.121 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.1156, allocations: 11.92 kB / 447.9 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.922e-05/0.1156, allocations: 12 kB / 447.9 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.1157, allocations: 11.94 kB / 447.9 MB, free: 5.086 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.1158, allocations: 145.5 kB / 448 MB, free: 4.934 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.1159, allocations: 118.1 kB / 448.1 MB, free: 4.812 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.183e-05/0.116, allocations: 24.7 kB / 448.2 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.116, allocations: 4 kB / 448.2 MB, free: 4.785 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.116, allocations: 4.094 kB / 448.2 MB, free: 4.781 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.116, allocations: 3.938 kB / 448.2 MB, free: 4.777 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.1162, allocations: 197.5 kB / 448.4 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1162, allocations: 0 / 448.4 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.1163, allocations: 35.92 kB / 448.4 MB, free: 4.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1163, allocations: 0 / 448.4 MB, free: 4.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.1163, allocations: 0 / 448.4 MB, free: 4.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1163, allocations: 8.078 kB / 448.4 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1163, allocations: 3.984 kB / 448.4 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.1166, allocations: 256.9 kB / 448.7 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.756e-05/0.1166, allocations: 97 kB / 448.8 MB, free: 4.102 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.1167, allocations: 8 kB / 448.8 MB, free: 4.094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.381e-05/0.1168, allocations: 7.984 kB / 448.8 MB, free: 4.086 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.121e-05/0.1168, allocations: 7.938 kB / 448.8 MB, free: 4.078 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.407e-06/0.1168, allocations: 8 kB / 448.8 MB, free: 4.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.488e-05/0.1169, allocations: 115.9 kB / 448.9 MB, free: 3.957 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1169, allocations: 0 / 448.9 MB, free: 3.957 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002397/0.1171, allocations: 20 kB / 448.9 MB, free: 3.938 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0005307/0.1177, allocations: 0.8456 MB / 449.8 MB, free: 3.059 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002092/0.1179, allocations: 111.8 kB / 449.9 MB, free: 2.949 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1179, allocations: 0 / 449.9 MB, free: 2.949 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.669e-05/0.118, allocations: 11.98 kB / 449.9 MB, free: 2.938 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/0.1184, allocations: 85.02 kB / 450 MB, free: 2.855 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009832/0.1194, allocations: 0.8405 MB / 450.8 MB, free: 1.91 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.1196, allocations: 0.7166 MB / 451.5 MB, free: 1.168 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.019e-05/0.1196, allocations: 13.42 kB / 451.5 MB, free: 1.156 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.877e-05/0.1197, allocations: 35.7 kB / 451.6 MB, free: 1.121 MB / 282.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1197, allocations: 0 / 451.6 MB, free: 1.121 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01394/0.1336, allocations: 2.411 MB / 454 MB, free: 14.71 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002117/0.1339, allocations: 209 kB / 454.2 MB, free: 14.47 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/1.799, allocations: 3.938 kB / 454.2 MB, free: 14.46 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat does not exist to compare? outputFormat=mat