Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Sample3,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample3",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.002365/0.00237, allocations: 187.1 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.355/2.355, allocations: 205.4 MB / 221.9 MB, free: 13.7 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.001176/0.001176, allocations: 98.83 kB / 270.3 MB, free: 13.22 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.1049/0.1049, allocations: 12.6 MB / 331.1 MB, free: 10.26 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005897/0.00059, allocations: 12.62 kB / 392.1 MB, free: 54.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1026, allocations: 50.37 MB / 442.5 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3): time 0.002086/0.1048, allocations: 1.375 MB / 443.9 MB, free: 9.398 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004563/0.1053, allocations: 155.5 kB / 444 MB, free: 9.246 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.1054, allocations: 4 kB / 444 MB, free: 9.242 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.73e-05/0.1054, allocations: 7.922 kB / 444 MB, free: 9.234 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001355/0.1056, allocations: 11.92 kB / 444 MB, free: 9.223 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002954/0.1059, allocations: 35.91 kB / 444.1 MB, free: 9.188 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.911e-05/0.106, allocations: 35.89 kB / 444.1 MB, free: 9.152 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.1061, allocations: 27.98 kB / 444.1 MB, free: 9.125 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.298e-05/0.1062, allocations: 11.92 kB / 444.1 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.747e-05/0.1062, allocations: 23.86 kB / 444.2 MB, free: 9.09 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.1063, allocations: 0 / 444.2 MB, free: 9.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.752e-05/0.1063, allocations: 4 kB / 444.2 MB, free: 9.086 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.576e-05/0.1063, allocations: 11.92 kB / 444.2 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.618e-05/0.1064, allocations: 41.58 kB / 444.2 MB, free: 9.027 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.165e-05/0.1065, allocations: 48.42 kB / 444.3 MB, free: 8.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.1065, allocations: 0 / 444.3 MB, free: 8.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1065, allocations: 0 / 444.3 MB, free: 8.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.381e-06/0.1065, allocations: 4 kB / 444.3 MB, free: 8.977 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004677/0.107, allocations: 375.3 kB / 444.6 MB, free: 8.562 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.1071, allocations: 8.031 kB / 444.6 MB, free: 8.555 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.646e-05/0.1071, allocations: 42.55 kB / 444.7 MB, free: 8.504 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.1071, allocations: 7.906 kB / 444.7 MB, free: 8.496 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.1073, allocations: 194.8 kB / 444.9 MB, free: 8.266 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.1074, allocations: 4 kB / 444.9 MB, free: 8.262 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.1074, allocations: 8 kB / 444.9 MB, free: 8.254 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004078/0.1078, allocations: 165.7 kB / 445.1 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1078, allocations: 0 / 445.1 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.1079, allocations: 0 / 445.1 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.1079, allocations: 7.938 kB / 445.1 MB, free: 8.062 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.1081, allocations: 39.97 kB / 445.1 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003945/0.1085, allocations: 381.7 kB / 445.5 MB, free: 7.594 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.1088, allocations: 115.9 kB / 445.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.1088, allocations: 0 / 445.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.1089, allocations: 38.56 kB / 445.6 MB, free: 7.406 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.803e-06/0.1089, allocations: 4.062 kB / 445.6 MB, free: 7.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004705/0.1093, allocations: 125.4 kB / 445.8 MB, free: 7.273 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.1094, allocations: 106.8 kB / 445.9 MB, free: 7.145 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.1096, allocations: 140.9 kB / 446 MB, free: 6.996 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.1096, allocations: 33.7 kB / 446 MB, free: 6.957 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.576e-05/0.1096, allocations: 92.05 kB / 446.1 MB, free: 6.863 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.389e-05/0.1097, allocations: 16.03 kB / 446.1 MB, free: 6.848 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-06/0.1097, allocations: 4 kB / 446.1 MB, free: 6.844 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.42e-05/0.1098, allocations: 318.8 kB / 446.5 MB, free: 6.523 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.567e-05/0.1099, allocations: 15.98 kB / 446.5 MB, free: 6.508 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.891e-05/0.11, allocations: 75.66 kB / 446.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.692e-05/0.1101, allocations: 27.98 kB / 446.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1101, allocations: 0 / 446.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000264/0.1104, allocations: 109.7 kB / 446.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.1104, allocations: 4.188 kB / 446.7 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1104, allocations: 4 kB / 446.7 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.1105, allocations: 11.92 kB / 446.7 MB, free: 6.246 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.1106, allocations: 23.92 kB / 446.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.1106, allocations: 0 / 446.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.1107, allocations: 15.91 kB / 446.7 MB, free: 6.207 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.1108, allocations: 4 kB / 446.7 MB, free: 6.203 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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.0001006/0.1109, allocations: 141.5 kB / 446.9 MB, free: 6.055 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.111, allocations: 69.59 kB / 446.9 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.672e-05/0.1111, allocations: 16.72 kB / 447 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.1111, allocations: 0 / 447 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.1111, allocations: 8 kB / 447 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.1111, allocations: 0 / 447 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002642/0.1114, allocations: 181.6 kB / 447.1 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1114, allocations: 3.984 kB / 447.2 MB, free: 5.723 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.1116, allocations: 16 kB / 447.2 MB, free: 5.707 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1116, allocations: 4 kB / 447.2 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.1116, allocations: 4 kB / 447.2 MB, free: 5.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.1116, allocations: 15.86 kB / 447.2 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1116, allocations: 0 / 447.2 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004216/0.1121, allocations: 335.7 kB / 447.5 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.96e-05/0.1122, allocations: 104.8 kB / 447.6 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.1122, allocations: 0 / 447.6 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.1123, allocations: 11.98 kB / 447.6 MB, free: 5.188 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.445e-05/0.1124, allocations: 0 / 447.6 MB, free: 5.188 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.1124, allocations: 7.938 kB / 447.6 MB, free: 5.18 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.782e-05/0.1125, allocations: 111.2 kB / 447.7 MB, free: 5.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1125, allocations: 0 / 447.7 MB, free: 5.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003895/0.1129, allocations: 12 kB / 447.8 MB, free: 5.059 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 (10): * Single equations (assignments): 10 * 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.0006465/0.1135, allocations: 0.9986 MB / 448.8 MB, free: 4.016 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00025/0.1138, allocations: 72.53 kB / 448.8 MB, free: 3.945 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.217e-06/0.1138, allocations: 0 / 448.8 MB, free: 3.945 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.775e-05/0.1139, allocations: 15.92 kB / 448.8 MB, free: 3.93 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/0.1144, allocations: 35.77 kB / 448.9 MB, free: 3.898 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.1158, allocations: 1.799 MB / 450.7 MB, free: 2.012 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.116, allocations: 0.7121 MB / 451.4 MB, free: 1.273 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.889e-05/0.1161, allocations: 4.672 kB / 451.4 MB, free: 1.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.762e-05/0.1161, allocations: 23.42 kB / 451.4 MB, free: 1.246 MB / 282.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1161, allocations: 0 / 451.4 MB, free: 1.246 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.1367, allocations: 1.593 MB / 453 MB, free: 15.66 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002649/0.137, allocations: 200.5 kB / 453.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.411/2.548, allocations: 64 / 453.2 MB, free: 15.42 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat does not exist to compare? outputFormat=mat