Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",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.002157/0.002157, allocations: 173.2 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.717/1.717, allocations: 205.4 MB / 222 MB, free: 13.83 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.000928/0.0009282, allocations: 94.3 kB / 270.3 MB, free: 13.36 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.07473/0.07473, allocations: 12.59 MB / 331.2 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004556, allocations: 16.69 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1128, allocations: 50.38 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.00184/0.1147, allocations: 1.248 MB / 443.7 MB, free: 9.57 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007793/0.1155, allocations: 492.1 kB / 444.2 MB, free: 9.082 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.1157, allocations: 7.938 kB / 444.2 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.769e-05/0.1157, allocations: 3.984 kB / 444.2 MB, free: 9.07 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.1159, allocations: 3.938 kB / 444.2 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.1162, allocations: 35.89 kB / 444.3 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.45e-05/0.1163, allocations: 31.86 kB / 444.3 MB, free: 9 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.1164, allocations: 12 kB / 444.3 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.351e-05/0.1165, allocations: 23.91 kB / 444.3 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.982e-05/0.1166, allocations: 15.94 kB / 444.4 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.1166, allocations: 0 / 444.4 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.133e-05/0.1166, allocations: 0 / 444.4 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.379e-05/0.1167, allocations: 11.92 kB / 444.4 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.1167, allocations: 33.7 kB / 444.4 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.5e-05/0.1168, allocations: 27.94 kB / 444.4 MB, free: 8.871 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1168, allocations: 3.938 kB / 444.4 MB, free: 8.867 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1168, allocations: 0 / 444.4 MB, free: 8.867 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1168, allocations: 0 / 444.4 MB, free: 8.867 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004649/0.1173, allocations: 371.8 kB / 444.8 MB, free: 8.457 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.1174, allocations: 8.031 kB / 444.8 MB, free: 8.449 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.578e-05/0.1174, allocations: 30.56 kB / 444.8 MB, free: 8.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.953e-05/0.1174, allocations: 7.906 kB / 444.8 MB, free: 8.402 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001818/0.1176, allocations: 190.8 kB / 445 MB, free: 8.176 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.1177, allocations: 4 kB / 445 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.1177, allocations: 0 / 445 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002444/0.1179, allocations: 97.05 kB / 445.1 MB, free: 8.059 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.118, allocations: 3.984 kB / 445.1 MB, free: 8.055 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.118, allocations: 0 / 445.1 MB, free: 8.055 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.118, allocations: 0 / 445.1 MB, free: 8.055 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.452e-05/0.1181, allocations: 27.92 kB / 445.2 MB, free: 8.027 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003075/0.1184, allocations: 269.8 kB / 445.4 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.907e-05/0.1185, allocations: 41.16 kB / 445.5 MB, free: 7.652 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.735e-05/0.1185, allocations: 33.77 kB / 445.5 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.1186, allocations: 0 / 445.5 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.1186, allocations: 30.56 kB / 445.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1186, allocations: 0 / 445.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002629/0.1189, allocations: 73.73 kB / 445.6 MB, free: 7.496 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.1189, allocations: 89.14 kB / 445.7 MB, free: 7.391 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.1191, allocations: 133.5 kB / 445.8 MB, free: 7.254 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.1191, allocations: 33.64 kB / 445.8 MB, free: 7.215 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.66e-05/0.1191, allocations: 88.12 kB / 445.9 MB, free: 7.125 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.1192, allocations: 3.938 kB / 445.9 MB, free: 7.121 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-06/0.1192, allocations: 0 / 445.9 MB, free: 7.121 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.291e-05/0.1192, allocations: 318.8 kB / 446.3 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.434e-05/0.1193, allocations: 15.98 kB / 446.3 MB, free: 6.785 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.002e-05/0.1193, allocations: 21.66 kB / 446.3 MB, free: 6.758 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.843e-05/0.1194, allocations: 15.98 kB / 446.3 MB, free: 6.742 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.1194, allocations: 0 / 446.3 MB, free: 6.742 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001163/0.1195, allocations: 61.66 kB / 446.4 MB, free: 6.676 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.1196, allocations: 8 kB / 446.4 MB, free: 6.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1196, allocations: 0 / 446.4 MB, free: 6.668 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.1196, allocations: 0 / 446.4 MB, free: 6.668 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.324e-05/0.1197, allocations: 11.92 kB / 446.4 MB, free: 6.656 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.1197, allocations: 0 / 446.4 MB, free: 6.656 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.68e-05/0.1197, allocations: 4 kB / 446.4 MB, free: 6.652 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1197, allocations: 4 kB / 446.4 MB, free: 6.648 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 7.998e-05/0.1198, allocations: 125.6 kB / 446.5 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.241e-05/0.1199, allocations: 41.55 kB / 446.6 MB, free: 6.469 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.241e-05/0.1199, allocations: 11.83 kB / 446.6 MB, free: 6.457 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.1199, allocations: 0 / 446.6 MB, free: 6.457 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.12, allocations: 4 kB / 446.6 MB, free: 6.453 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.12, allocations: 0 / 446.6 MB, free: 6.453 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.1201, allocations: 169.6 kB / 446.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1201, allocations: 0 / 446.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.595e-05/0.1202, allocations: 12.02 kB / 446.7 MB, free: 6.227 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1202, allocations: 4 kB / 446.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.1202, allocations: 0 / 446.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1202, allocations: 3.938 kB / 446.8 MB, free: 6.219 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1202, allocations: 0 / 446.8 MB, free: 6.219 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001502/0.1204, allocations: 172.2 kB / 446.9 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.427e-05/0.1204, allocations: 89.09 kB / 447 MB, free: 5.926 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.1205, allocations: 0 / 447 MB, free: 5.926 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.987e-05/0.1205, allocations: 4 kB / 447 MB, free: 5.922 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-05/0.1206, allocations: 0 / 447 MB, free: 5.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.1206, allocations: 4 kB / 447 MB, free: 5.918 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.283e-05/0.1206, allocations: 107.2 kB / 447.1 MB, free: 5.812 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1206, allocations: 4 kB / 447.1 MB, free: 5.809 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002059/0.1209, allocations: 4 kB / 447.1 MB, free: 5.805 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0003298/0.1212, allocations: 0.6898 MB / 447.8 MB, free: 5.086 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001272/0.1213, allocations: 35.95 kB / 447.9 MB, free: 5.051 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.1213, allocations: 0 / 447.9 MB, free: 5.051 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.618e-05/0.1214, allocations: 11.94 kB / 447.9 MB, free: 5.039 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.1217, allocations: 15.77 kB / 447.9 MB, free: 5.027 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006839/0.1224, allocations: 0.4903 MB / 448.4 MB, free: 4.484 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/0.1226, allocations: 0.6887 MB / 449.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.005e-05/0.1226, allocations: 4 kB / 449.1 MB, free: 3.766 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.856e-05/0.1226, allocations: 11.44 kB / 449.1 MB, free: 3.754 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.1227, allocations: 0 / 449.1 MB, free: 3.754 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01234/0.135, allocations: 1.252 MB / 450.3 MB, free: 2.512 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/0.1352, allocations: 209.6 kB / 450.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/1.773, allocations: 0 / 450.5 MB, free: 2.273 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat