Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",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.001251/0.001251, allocations: 176.3 kB / 16.15 MB, free: 5.645 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.455/1.455, allocations: 205.4 MB / 222.3 MB, free: 9.012 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.0007926/0.0007924, allocations: 78.42 kB / 270.7 MB, free: 8.238 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.08597/0.08597, allocations: 12.6 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003573, allocations: 11.98 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07938/0.07976, allocations: 50.38 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.001803/0.0816, allocations: 1.59 MB / 444.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.08297, allocations: 1.049 MB / 445.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.08312, allocations: 0 / 445.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002885/0.08342, allocations: 59.78 kB / 445.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002128/0.08365, allocations: 75.73 kB / 445.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008399/0.0845, allocations: 219.6 kB / 446.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003108/0.08482, allocations: 159.6 kB / 446.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.08498, allocations: 29.84 kB / 446.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.08516, allocations: 75.56 kB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.08531, allocations: 67.69 kB / 446.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.183e-05/0.08535, allocations: 8 kB / 446.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002281/0.08559, allocations: 59.89 kB / 446.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.283e-05/0.08569, allocations: 39.84 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.622e-05/0.08578, allocations: 97.12 kB / 446.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.08608, allocations: 227.2 kB / 446.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.0861, allocations: 0 / 446.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.0861, allocations: 7.922 kB / 446.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.08612, allocations: 0 / 446.9 MB, free: 11.54 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006495/0.08677, allocations: 0.4923 MB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.08682, allocations: 16.03 kB / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.187e-05/0.08687, allocations: 38.73 kB / 447.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.53e-05/0.08693, allocations: 28.66 kB / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.08722, allocations: 291.4 kB / 447.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.08724, allocations: 8.375 kB / 447.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.08727, allocations: 7.938 kB / 447.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.08756, allocations: 169.8 kB / 447.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.08759, allocations: 0 / 447.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.08761, allocations: 7.984 kB / 447.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.08762, allocations: 0 / 447.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.08773, allocations: 43.91 kB / 448 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004363/0.08817, allocations: 474.5 kB / 448.4 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.0884, allocations: 146.5 kB / 448.6 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.914e-05/0.08849, allocations: 55.42 kB / 448.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.08852, allocations: 7.922 kB / 448.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.08871, allocations: 101 kB / 448.7 MB, free: 9.422 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.824e-06/0.08872, allocations: 0 / 448.7 MB, free: 9.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003604/0.08909, allocations: 169.2 kB / 448.9 MB, free: 9.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.08916, allocations: 188.3 kB / 449.1 MB, free: 9.023 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/0.08942, allocations: 330.6 kB / 449.4 MB, free: 8.691 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.08945, allocations: 33.7 kB / 449.5 MB, free: 8.652 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.763e-05/0.08951, allocations: 132.2 kB / 449.6 MB, free: 8.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.08954, allocations: 19.75 kB / 449.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-06/0.08955, allocations: 4 kB / 449.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.292e-05/0.08961, allocations: 334.8 kB / 449.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.417e-05/0.08968, allocations: 23.98 kB / 450 MB, free: 8.137 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.55e-05/0.08977, allocations: 95.7 kB / 450 MB, free: 8.016 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.08991, allocations: 97.08 kB / 450.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.08992, allocations: 0 / 450.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002098/0.09014, allocations: 141.5 kB / 450.3 MB, free: 7.758 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.09016, allocations: 11.92 kB / 450.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.09017, allocations: 4 kB / 450.3 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.09019, allocations: 0 / 450.3 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.0903, allocations: 24.09 kB / 450.3 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.09032, allocations: 7.984 kB / 450.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.09042, allocations: 7.938 kB / 450.3 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.09044, allocations: 8 kB / 450.3 MB, free: 7.695 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 9.828e-05/0.09054, allocations: 153.7 kB / 450.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.016e-05/0.09062, allocations: 73.41 kB / 450.6 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.448e-05/0.09067, allocations: 29.7 kB / 450.6 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.09068, allocations: 4.062 kB / 450.6 MB, free: 7.426 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.09069, allocations: 4 kB / 450.6 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.0907, allocations: 3.938 kB / 450.6 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.09085, allocations: 241.6 kB / 450.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.09086, allocations: 4 kB / 450.8 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.925e-05/0.09093, allocations: 19.92 kB / 450.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.09094, allocations: 0 / 450.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.09096, allocations: 8 kB / 450.9 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.09097, allocations: 0 / 450.9 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.09097, allocations: 0 / 450.9 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000217/0.0912, allocations: 191.2 kB / 451.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.432e-05/0.09128, allocations: 116.8 kB / 451.2 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.09132, allocations: 4 kB / 451.2 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.05e-05/0.09139, allocations: 11.98 kB / 451.2 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.09145, allocations: 15.92 kB / 451.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.09147, allocations: 4 kB / 451.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001731/0.09165, allocations: 245.9 kB / 451.4 MB, free: 6.477 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09166, allocations: 0 / 451.4 MB, free: 6.477 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000256/0.09192, allocations: 39.98 kB / 451.5 MB, free: 6.438 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001104/0.09303, allocations: 1.035 MB / 452.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001988/0.09324, allocations: 75.91 kB / 452.6 MB, free: 5.289 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.09325, allocations: 4 kB / 452.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.158e-05/0.09334, allocations: 40.17 kB / 452.6 MB, free: 5.246 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.09376, allocations: 76.48 kB / 452.7 MB, free: 5.172 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.09579, allocations: 2.304 MB / 455 MB, free: 2.738 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001736/0.09598, allocations: 0.744 MB / 455.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.991e-05/0.09608, allocations: 33.52 kB / 455.8 MB, free: 1.938 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.433e-05/0.09618, allocations: 55.42 kB / 455.8 MB, free: 1.887 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.09618, allocations: 0 / 455.8 MB, free: 1.887 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01677/0.113, allocations: 4.88 MB / 460.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/0.1132, allocations: 260.1 kB / 461 MB, free: 12.64 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.922/2.035, allocations: 0 / 461 MB, free: 12.64 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat