Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample",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.001003/0.001003, allocations: 176.6 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.653/1.653, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.0008969/0.0008967, allocations: 98.23 kB / 270.3 MB, free: 13.33 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.07936/0.07936, allocations: 12.59 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004262, allocations: 14.28 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1032, allocations: 50.38 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.001857/0.1052, allocations: 1.271 MB / 443.8 MB, free: 9.516 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007617/0.1059, allocations: 496 kB / 444.3 MB, free: 9.023 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.509e-05/0.106, allocations: 4 kB / 444.3 MB, free: 9.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.929e-05/0.1061, allocations: 7.922 kB / 444.3 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.1062, allocations: 3.938 kB / 444.3 MB, free: 9.008 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.1065, allocations: 53.62 kB / 444.3 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.153e-05/0.1066, allocations: 35.86 kB / 444.4 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.557e-05/0.1067, allocations: 12.19 kB / 444.4 MB, free: 8.91 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.796e-05/0.1068, allocations: 19.86 kB / 444.4 MB, free: 8.891 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.809e-05/0.1068, allocations: 27.84 kB / 444.4 MB, free: 8.863 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.1069, allocations: 0 / 444.4 MB, free: 8.863 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.306e-05/0.1069, allocations: 4 kB / 444.4 MB, free: 8.859 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.763e-05/0.1069, allocations: 7.938 kB / 444.4 MB, free: 8.852 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.645e-05/0.107, allocations: 37.64 kB / 444.5 MB, free: 8.809 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 6.993e-05/0.107, allocations: 31.94 kB / 444.5 MB, free: 8.777 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.107, allocations: 0 / 444.5 MB, free: 8.777 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.107, allocations: 0 / 444.5 MB, free: 8.777 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1071, allocations: 0 / 444.5 MB, free: 8.777 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000401/0.1075, allocations: 379.8 kB / 444.9 MB, free: 8.359 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.1075, allocations: 12.03 kB / 444.9 MB, free: 8.348 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.514e-05/0.1076, allocations: 30.56 kB / 444.9 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.1076, allocations: 11.89 kB / 444.9 MB, free: 8.297 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.1078, allocations: 186.9 kB / 445.1 MB, free: 8.074 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.1078, allocations: 3.938 kB / 445.1 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.1079, allocations: 4 kB / 445.1 MB, free: 8.066 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.1081, allocations: 117.9 kB / 445.2 MB, free: 7.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.1081, allocations: 0 / 445.2 MB, free: 7.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.1082, allocations: 3.984 kB / 445.2 MB, free: 7.926 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.1082, allocations: 3.984 kB / 445.2 MB, free: 7.922 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.112e-05/0.1083, allocations: 27.98 kB / 445.3 MB, free: 7.895 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000268/0.1085, allocations: 278.5 kB / 445.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.376e-05/0.1086, allocations: 79.78 kB / 445.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.703e-05/0.1087, allocations: 30.64 kB / 445.6 MB, free: 7.422 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.1087, allocations: 3.984 kB / 445.6 MB, free: 7.418 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.1088, allocations: 38.56 kB / 445.7 MB, free: 7.371 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.1088, allocations: 0 / 445.7 MB, free: 7.371 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.000249/0.109, allocations: 89.45 kB / 445.8 MB, free: 7.277 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.1091, allocations: 106.8 kB / 445.9 MB, free: 7.148 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.733e-05/0.1092, allocations: 157.9 kB / 446 MB, free: 6.984 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.386e-06/0.1092, allocations: 25.7 kB / 446.1 MB, free: 6.953 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.076e-05/0.1092, allocations: 92.05 kB / 446.1 MB, free: 6.859 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.209e-05/0.1092, allocations: 4 kB / 446.1 MB, free: 6.855 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-06/0.1092, allocations: 0 / 446.1 MB, free: 6.855 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.618e-05/0.1093, allocations: 318.8 kB / 446.5 MB, free: 6.535 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.074e-05/0.1093, allocations: 8 kB / 446.5 MB, free: 6.527 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.202e-05/0.1094, allocations: 39.42 kB / 446.5 MB, free: 6.477 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.487e-05/0.1094, allocations: 19.92 kB / 446.5 MB, free: 6.457 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1095, allocations: 3.938 kB / 446.5 MB, free: 6.453 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001142/0.1096, allocations: 77.53 kB / 446.6 MB, free: 6.371 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.1096, allocations: 4 kB / 446.6 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1096, allocations: 4 kB / 446.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1096, allocations: 7.938 kB / 446.6 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.487e-05/0.1097, allocations: 11.98 kB / 446.6 MB, free: 6.344 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.1097, allocations: 7.938 kB / 446.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.087e-05/0.1098, allocations: 7.938 kB / 446.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1098, allocations: 0 / 446.6 MB, free: 6.328 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.021e-05/0.1098, allocations: 129.7 kB / 446.8 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.048e-05/0.1099, allocations: 45.61 kB / 446.8 MB, free: 6.141 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.898e-05/0.1099, allocations: 19.81 kB / 446.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.11, allocations: 0 / 446.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.11, allocations: 7.938 kB / 446.8 MB, free: 6.113 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.11, allocations: 3.953 kB / 446.8 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.1101, allocations: 169.6 kB / 447 MB, free: 5.895 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1101, allocations: 4 kB / 447 MB, free: 5.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.564e-05/0.1102, allocations: 16.05 kB / 447 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1102, allocations: 0 / 447 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.1102, allocations: 0 / 447 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1102, allocations: 4 kB / 447 MB, free: 5.871 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1102, allocations: 0 / 447 MB, free: 5.871 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001413/0.1103, allocations: 189 kB / 447.2 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.715e-05/0.1104, allocations: 93 kB / 447.3 MB, free: 5.555 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.1104, allocations: 4 kB / 447.3 MB, free: 5.551 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.672e-05/0.1105, allocations: 3.984 kB / 447.3 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.185e-05/0.1105, allocations: 4 kB / 447.3 MB, free: 5.543 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-06/0.1105, allocations: 0 / 447.3 MB, free: 5.543 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.991e-05/0.1106, allocations: 115.2 kB / 447.4 MB, free: 5.43 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1106, allocations: 0 / 447.4 MB, free: 5.43 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002045/0.1108, allocations: 8 kB / 447.4 MB, free: 5.422 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0002954/0.1111, allocations: 0.7101 MB / 448.2 MB, free: 4.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.1112, allocations: 35.98 kB / 448.2 MB, free: 4.645 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1112, allocations: 0 / 448.2 MB, free: 4.645 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.582e-05/0.1113, allocations: 15.92 kB / 448.2 MB, free: 4.629 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.1117, allocations: 28.27 kB / 448.2 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006726/0.1123, allocations: 0.5343 MB / 448.8 MB, free: 4.008 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001218/0.1125, allocations: 0.6926 MB / 449.5 MB, free: 3.289 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.041e-05/0.1125, allocations: 8.359 kB / 449.5 MB, free: 3.281 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.672e-05/0.1125, allocations: 23.48 kB / 449.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1126, allocations: 3.938 kB / 449.5 MB, free: 3.254 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01141/0.124, allocations: 1.43 MB / 450.9 MB, free: 1.836 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001885/0.1242, allocations: 220.9 kB / 451.1 MB, free: 1.582 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/1.689, allocations: 0 / 451.1 MB, free: 1.582 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat does not exist to compare? outputFormat=mat