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.001348/0.001348, allocations: 171.4 kB / 16.15 MB, free: 5.656 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.431/1.431, 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.0007752/0.0007752, allocations: 89.56 kB / 270.7 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.07343/0.07343, allocations: 12.59 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004066/0.0004068, allocations: 12.38 kB / 392.8 MB, free: 65.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09429/0.09472, allocations: 50.37 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.001902/0.09666, allocations: 1.451 MB / 444.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009098/0.0976, allocations: 0.5464 MB / 445.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.09776, allocations: 7.938 kB / 445.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.443e-05/0.09782, allocations: 3.938 kB / 445.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.098, allocations: 15.92 kB / 445.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004189/0.09843, allocations: 91.73 kB / 445.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.09858, allocations: 87.75 kB / 445.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.09871, allocations: 21.39 kB / 445.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.714e-05/0.09882, allocations: 43.78 kB / 445.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.271e-05/0.09889, allocations: 39.78 kB / 445.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.09892, allocations: 7.938 kB / 445.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.576e-05/0.09894, allocations: 0 / 445.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.593e-05/0.09901, allocations: 23.86 kB / 445.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.334e-05/0.09907, allocations: 77.36 kB / 445.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.09918, allocations: 91.55 kB / 445.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.09919, allocations: 0 / 445.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.0992, allocations: 0 / 445.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.09921, allocations: 0 / 445.6 MB, free: 12.79 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.000474/0.09969, allocations: 399.1 kB / 446 MB, free: 12.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.09975, allocations: 12.03 kB / 446 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.142e-05/0.09981, allocations: 42.75 kB / 446.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.457e-05/0.09986, allocations: 16.75 kB / 446.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.1001, allocations: 219.9 kB / 446.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.1001, allocations: 4.375 kB / 446.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.1001, allocations: 12.38 kB / 446.3 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004535/0.1006, allocations: 298.2 kB / 446.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.1006, allocations: 0 / 446.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.1006, allocations: 0 / 446.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1006, allocations: 4 kB / 446.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.1008, allocations: 51.91 kB / 446.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003198/0.1011, allocations: 310.5 kB / 447 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.1013, allocations: 131.7 kB / 447.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.1014, allocations: 86.77 kB / 447.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.1015, allocations: 0 / 447.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.1015, allocations: 38.56 kB / 447.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.142e-06/0.1015, allocations: 0 / 447.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003687/0.1019, allocations: 173.5 kB / 447.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.1019, allocations: 131.2 kB / 447.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.102, allocations: 154.2 kB / 447.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.1021, allocations: 25.7 kB / 447.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.09e-05/0.1021, allocations: 92.09 kB / 447.8 MB, free: 10.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.1021, allocations: 19.83 kB / 447.8 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-06/0.1021, allocations: 8 kB / 447.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.618e-05/0.1022, allocations: 326.8 kB / 448.1 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.312e-05/0.1023, allocations: 31.92 kB / 448.2 MB, free: 9.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.1024, allocations: 134.5 kB / 448.3 MB, free: 9.797 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.1026, allocations: 178.3 kB / 448.5 MB, free: 9.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1026, allocations: 0 / 448.5 MB, free: 9.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002568/0.1029, allocations: 185.1 kB / 448.7 MB, free: 9.383 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1029, allocations: 8 kB / 448.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/0.1029, allocations: 4 kB / 448.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.103, allocations: 4.531 kB / 448.7 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.1031, allocations: 35.92 kB / 448.7 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.1031, allocations: 8.25 kB / 448.7 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.831e-05/0.1032, allocations: 19.88 kB / 448.7 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.1032, allocations: 12 kB / 448.8 MB, free: 9.293 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.1033, allocations: 145.7 kB / 448.9 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.1035, allocations: 117.4 kB / 449 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.799e-05/0.1036, allocations: 16.72 kB / 449 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1036, allocations: 11.94 kB / 449 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1036, allocations: 0 / 449 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1036, allocations: 7.922 kB / 449 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.1038, allocations: 193.6 kB / 449.2 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.1038, allocations: 4 kB / 449.2 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.1039, allocations: 27.92 kB / 449.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.1039, allocations: 0 / 449.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.1039, allocations: 7.984 kB / 449.3 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.104, allocations: 0 / 449.3 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.104, allocations: 0 / 449.3 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.1042, allocations: 256.9 kB / 449.5 MB, free: 8.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.334e-05/0.1043, allocations: 108.9 kB / 449.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.1043, allocations: 4 kB / 449.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.1044, allocations: 8 kB / 449.6 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.1045, allocations: 11.88 kB / 449.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.1045, allocations: 7.984 kB / 449.7 MB, free: 8.273 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.859e-05/0.1046, allocations: 120 kB / 449.8 MB, free: 8.156 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1046, allocations: 3.938 kB / 449.8 MB, free: 8.152 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002713/0.1049, allocations: 20 kB / 449.8 MB, free: 8.133 MB / 298.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 (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.000583/0.1055, allocations: 0.8486 MB / 450.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002127/0.1057, allocations: 112.6 kB / 450.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1057, allocations: 0 / 450.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.528e-05/0.1057, allocations: 8 kB / 450.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.1062, allocations: 79.88 kB / 450.8 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/0.1079, allocations: 1.898 MB / 452.7 MB, free: 4.965 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.108, allocations: 0.7283 MB / 453.5 MB, free: 4.211 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.869e-05/0.1081, allocations: 5.438 kB / 453.5 MB, free: 4.207 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.403e-05/0.1082, allocations: 35.42 kB / 453.5 MB, free: 4.172 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.1082, allocations: 0 / 453.5 MB, free: 4.172 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01419/0.1224, allocations: 2.412 MB / 455.9 MB, free: 1.75 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/0.1226, allocations: 216.6 kB / 456.1 MB, free: 1.5 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/1.856, allocations: 0 / 456.1 MB, free: 1.5 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