Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.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.UpSample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2",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.001263/0.001264, allocations: 176.8 kB / 15.82 MB, free: 6.305 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.52/1.52, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009762/0.0009769, allocations: 98.28 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08855/0.08855, allocations: 12.59 MB / 331.1 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004888/0.0004886, allocations: 17.16 kB / 392.1 MB, free: 54.8 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1068, allocations: 50.38 MB / 442.5 MB, free: 10.85 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2): time 0.00189/0.1087, allocations: 1.42 MB / 443.9 MB, free: 9.414 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.1099, allocations: 0.6363 MB / 444.6 MB, free: 8.77 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.1101, allocations: 7.938 kB / 444.6 MB, free: 8.762 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.1103, allocations: 15.86 kB / 444.6 MB, free: 8.746 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002467/0.1106, allocations: 31.84 kB / 444.6 MB, free: 8.715 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.111, allocations: 109.5 kB / 444.7 MB, free: 8.609 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001718/0.1112, allocations: 127.7 kB / 444.9 MB, free: 8.484 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.1113, allocations: 29.53 kB / 444.9 MB, free: 8.453 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1114, allocations: 55.78 kB / 444.9 MB, free: 8.398 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.1116, allocations: 95.64 kB / 445 MB, free: 8.305 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 3.803e-05/0.1117, allocations: 4 kB / 445 MB, free: 8.301 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.668e-05/0.1117, allocations: 8 kB / 445 MB, free: 8.293 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 7.251e-05/0.1118, allocations: 59.81 kB / 445.1 MB, free: 8.234 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 5.851e-05/0.1119, allocations: 61.56 kB / 445.2 MB, free: 8.168 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.112, allocations: 136.5 kB / 445.3 MB, free: 8.035 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.112, allocations: 0 / 445.3 MB, free: 8.035 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.703e-06/0.112, allocations: 0 / 445.3 MB, free: 8.035 MB / 282.8 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.1121, allocations: 0 / 445.3 MB, free: 8.035 MB / 282.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00084/0.1129, allocations: 486.5 kB / 445.8 MB, free: 7.512 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.113, allocations: 8.031 kB / 445.8 MB, free: 7.504 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.128e-05/0.113, allocations: 54.55 kB / 445.8 MB, free: 7.441 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.672e-05/0.1131, allocations: 23.72 kB / 445.9 MB, free: 7.418 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.1134, allocations: 246.6 kB / 446.1 MB, free: 7.137 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.823e-05/0.1135, allocations: 16 kB / 446.1 MB, free: 7.121 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.1135, allocations: 23.92 kB / 446.1 MB, free: 7.098 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.1145, allocations: 0.6334 MB / 446.8 MB, free: 6.438 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.1146, allocations: 0 / 446.8 MB, free: 6.438 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.1146, allocations: 4 kB / 446.8 MB, free: 6.434 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.549e-05/0.1146, allocations: 15.98 kB / 446.8 MB, free: 6.418 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003582/0.115, allocations: 191.8 kB / 447 MB, free: 6.23 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000469/0.1155, allocations: 362.3 kB / 447.3 MB, free: 5.82 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/0.1159, allocations: 247.6 kB / 447.6 MB, free: 5.551 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/0.1161, allocations: 158.6 kB / 447.7 MB, free: 5.387 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.1162, allocations: 8.656 kB / 447.7 MB, free: 5.379 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.1162, allocations: 46.48 kB / 447.8 MB, free: 5.324 MB / 282.8 MB Notification: Performance of pre-optimization done (n=39): time 1.523e-06/0.1162, allocations: 0 / 447.8 MB, free: 5.324 MB / 282.8 MB Notification: Performance of matching and sorting (n=39): time 0.0007901/0.117, allocations: 421.7 kB / 448.2 MB, free: 4.906 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/0.1171, allocations: 142.7 kB / 448.3 MB, free: 4.742 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.1172, allocations: 163.5 kB / 448.5 MB, free: 4.574 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.1172, allocations: 41.69 kB / 448.5 MB, free: 4.527 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.095e-05/0.1173, allocations: 97.14 kB / 448.6 MB, free: 4.43 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.311e-05/0.1173, allocations: 51.47 kB / 448.7 MB, free: 4.379 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-06/0.1173, allocations: 4 kB / 448.7 MB, free: 4.375 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 7.884e-05/0.1174, allocations: 338.8 kB / 449 MB, free: 4.035 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.1176, allocations: 76.77 kB / 449.1 MB, free: 3.961 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.1178, allocations: 318.7 kB / 449.4 MB, free: 3.527 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.118, allocations: 139.9 kB / 449.5 MB, free: 3.391 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.118, allocations: 4 kB / 449.5 MB, free: 3.387 MB / 282.8 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005151/0.1185, allocations: 408.8 kB / 449.9 MB, free: 2.98 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.1185, allocations: 8 kB / 449.9 MB, free: 2.973 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1185, allocations: 12.81 kB / 450 MB, free: 2.961 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.1186, allocations: 12 kB / 450 MB, free: 2.949 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.1188, allocations: 91.83 kB / 450.1 MB, free: 2.859 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.1188, allocations: 15.94 kB / 450.1 MB, free: 2.844 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001645/0.119, allocations: 35.64 kB / 450.1 MB, free: 2.809 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.119, allocations: 24 kB / 450.1 MB, free: 2.785 MB / 282.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 (superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,FIR1.first,$CLKPRE.FIR1.first,FIR2.first,$CLKPRE.FIR2.first,upSample.b_super,$CLKPRE.upSample.b_super,superSampleIpo.first,$CLKPRE.superSampleIpo.first,upSample.b,$CLKPRE.upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0001515/0.1192, allocations: 181.6 kB / 450.3 MB, free: 2.598 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004147/0.1196, allocations: 298.3 kB / 450.6 MB, free: 2.301 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.477e-05/0.1197, allocations: 34.64 kB / 450.6 MB, free: 2.266 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1197, allocations: 8 kB / 450.6 MB, free: 2.258 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1197, allocations: 4 kB / 450.6 MB, free: 2.254 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1197, allocations: 3.984 kB / 450.6 MB, free: 2.25 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.1199, allocations: 249.2 kB / 450.9 MB, free: 1.957 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1199, allocations: 0 / 450.9 MB, free: 1.957 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000246/0.1202, allocations: 63.89 kB / 451 MB, free: 1.895 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.1202, allocations: 4 kB / 451 MB, free: 1.891 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.1202, allocations: 4 kB / 451 MB, free: 1.887 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.1202, allocations: 7.984 kB / 451 MB, free: 1.879 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1202, allocations: 0 / 451 MB, free: 1.879 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005322/0.1208, allocations: 447.6 kB / 451.4 MB, free: 1.422 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.635e-05/0.1209, allocations: 128.8 kB / 451.5 MB, free: 1.277 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.832e-05/0.1209, allocations: 19.98 kB / 451.5 MB, free: 1.258 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.1211, allocations: 15.98 kB / 451.6 MB, free: 1.242 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.829e-05/0.1211, allocations: 4 kB / 451.6 MB, free: 1.238 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.1212, allocations: 12 kB / 451.6 MB, free: 1.227 MB / 282.8 MB Notification: Performance of sorting global known variables: time 7.037e-05/0.1212, allocations: 127.2 kB / 451.7 MB, free: 1.102 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1213, allocations: 0 / 451.7 MB, free: 1.102 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0003758/0.1216, allocations: 52 kB / 451.8 MB, free: 1.051 MB / 282.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.001095/0.1227, allocations: 1.176 MB / 452.9 MB, free: 15.84 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0005366/0.1233, allocations: 285.7 kB / 453.2 MB, free: 15.57 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1233, allocations: 0 / 453.2 MB, free: 15.57 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 4.04e-05/0.1233, allocations: 15.92 kB / 453.2 MB, free: 15.55 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007321/0.1241, allocations: 233.1 kB / 453.5 MB, free: 15.33 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.1269, allocations: 1.604 MB / 455.1 MB, free: 13.56 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.1274, allocations: 0.7764 MB / 455.8 MB, free: 12.76 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 9.07e-05/0.1275, allocations: 26.28 kB / 455.9 MB, free: 12.73 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.1276, allocations: 71.41 kB / 455.9 MB, free: 12.66 MB / 298.8 MB Notification: Performance of SimCode: time 6.81e-07/0.1276, allocations: 0 / 455.9 MB, free: 12.66 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01752/0.1451, allocations: 4.616 MB / 460.5 MB, free: 8.055 MB / 298.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002441/0.1454, allocations: 209.7 kB / 460.8 MB, free: 7.809 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/1.999, allocations: 7.844 kB / 460.8 MB, free: 7.801 MB / 298.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2_res.mat does not exist to compare? outputFormat=mat