Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample",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.001104/0.001104, allocations: 172.8 kB / 16.14 MB, free: 5.66 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.456/1.456, allocations: 205.4 MB / 222.3 MB, free: 9.027 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.0008697/0.0008697, allocations: 93.23 kB / 270.7 MB, free: 8.242 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.07375/0.07375, allocations: 12.59 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003728, allocations: 12 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09075/0.09115, allocations: 50.38 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample): time 0.001434/0.09262, allocations: 1.282 MB / 444.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006811/0.09333, allocations: 0.5113 MB / 444.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.515e-05/0.09344, allocations: 4 kB / 444.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.529e-05/0.09348, allocations: 0 / 444.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.09363, allocations: 15.86 kB / 445 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.09391, allocations: 47.89 kB / 445 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.983e-05/0.094, allocations: 39.86 kB / 445 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.101e-05/0.09409, allocations: 20.11 kB / 445.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.919e-05/0.09417, allocations: 15.92 kB / 445.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.226e-05/0.09423, allocations: 23.86 kB / 445.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.09426, allocations: 0 / 445.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.233e-05/0.09427, allocations: 4 kB / 445.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.918e-05/0.09433, allocations: 7.938 kB / 445.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.422e-05/0.09438, allocations: 57.5 kB / 445.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.964e-05/0.09448, allocations: 55.95 kB / 445.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.09449, allocations: 0 / 445.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.09449, allocations: 0 / 445.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.0945, allocations: 0 / 445.2 MB, free: 13.21 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000373/0.09488, allocations: 363.2 kB / 445.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.09493, allocations: 8.031 kB / 445.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.962e-05/0.09497, allocations: 38.75 kB / 445.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.653e-05/0.095, allocations: 12.84 kB / 445.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.09517, allocations: 200 kB / 445.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/0.09519, allocations: 4.375 kB / 445.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.09521, allocations: 384 / 445.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002372/0.09545, allocations: 125.8 kB / 446 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.09547, allocations: 4 kB / 446 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.09548, allocations: 0 / 446 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.09549, allocations: 0 / 446 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.986e-05/0.09558, allocations: 27.92 kB / 446 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002446/0.09583, allocations: 278.5 kB / 446.3 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.587e-05/0.09593, allocations: 71.78 kB / 446.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.714e-05/0.09599, allocations: 38.62 kB / 446.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.09603, allocations: 4 kB / 446.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.09605, allocations: 34.5 kB / 446.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.473e-06/0.09606, allocations: 4 kB / 446.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002469/0.09631, allocations: 93.69 kB / 446.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.09637, allocations: 102.8 kB / 446.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.217e-05/0.09647, allocations: 145.6 kB / 446.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-06/0.09648, allocations: 25.7 kB / 446.8 MB, free: 11.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.026e-05/0.09652, allocations: 95.97 kB / 446.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.412e-05/0.09654, allocations: 8.188 kB / 446.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-06/0.09655, allocations: 4 kB / 446.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.822e-05/0.0966, allocations: 314.8 kB / 447.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.83e-05/0.09667, allocations: 15.98 kB / 447.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.951e-05/0.09672, allocations: 35.42 kB / 447.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.051e-05/0.0968, allocations: 55.36 kB / 447.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.09681, allocations: 0 / 447.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001181/0.09694, allocations: 73.53 kB / 447.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.09696, allocations: 4 kB / 447.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.09697, allocations: 0 / 447.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.09699, allocations: 7.984 kB / 447.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.933e-05/0.09706, allocations: 8 kB / 447.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.09707, allocations: 3.938 kB / 447.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.113e-05/0.09712, allocations: 4 kB / 447.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.09713, allocations: 4 kB / 447.4 MB, free: 10.73 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.016e-05/0.0972, allocations: 130.7 kB / 447.5 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.446e-05/0.09727, allocations: 53.59 kB / 447.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.088e-05/0.09731, allocations: 11.83 kB / 447.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.09732, allocations: 7.938 kB / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.09733, allocations: 0 / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.09733, allocations: 0 / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.09746, allocations: 173.6 kB / 447.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.09747, allocations: 4 kB / 447.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.062e-05/0.09753, allocations: 16.05 kB / 447.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.09755, allocations: 4 kB / 447.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.09756, allocations: 7.938 kB / 447.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.09757, allocations: 0 / 447.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.09757, allocations: 0 / 447.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.09772, allocations: 185 kB / 448 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.185e-05/0.09777, allocations: 100.9 kB / 448.1 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.09779, allocations: 3.984 kB / 448.1 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.649e-05/0.09786, allocations: 4 kB / 448.1 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.862e-05/0.0979, allocations: 0 / 448.1 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.09791, allocations: 4 kB / 448.1 MB, free: 9.938 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.842e-05/0.09796, allocations: 107.2 kB / 448.2 MB, free: 9.832 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09797, allocations: 0 / 448.2 MB, free: 9.832 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000207/0.09818, allocations: 8 kB / 448.2 MB, free: 9.824 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: 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 (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.0002991/0.09849, allocations: 0.714 MB / 448.9 MB, free: 9.078 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.09862, allocations: 39.97 kB / 449 MB, free: 9.039 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.09863, allocations: 0 / 449 MB, free: 9.039 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.565e-05/0.09867, allocations: 7.938 kB / 449 MB, free: 9.031 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.09904, allocations: 36.02 kB / 449 MB, free: 8.996 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.1001, allocations: 1.423 MB / 450.4 MB, free: 7.465 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.1002, allocations: 0.6926 MB / 451.1 MB, free: 6.746 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.419e-05/0.1003, allocations: 8.031 kB / 451.1 MB, free: 6.738 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.79e-05/0.1003, allocations: 15.42 kB / 451.1 MB, free: 6.723 MB / 298.7 MB Notification: Performance of SimCode: time 1.192e-06/0.1003, allocations: 0 / 451.1 MB, free: 6.723 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0106/0.1109, allocations: 1.493 MB / 452.6 MB, free: 5.227 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001691/0.1111, allocations: 226.9 kB / 452.8 MB, free: 4.969 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/1.77, allocations: 4 kB / 452.9 MB, free: 4.965 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat