Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.001336/0.001336, allocations: 169.8 kB / 16.14 MB, free: 5.656 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.418/1.418, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0007619/0.0007621, allocations: 82.19 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.08971/0.08971, allocations: 12.6 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003511, allocations: 12.33 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08657/0.08694, allocations: 50.37 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.001985/0.08897, allocations: 1.571 MB / 444.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.09045, allocations: 1.01 MB / 445.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.09058, allocations: 7.938 kB / 445.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002979/0.09088, allocations: 59.8 kB / 445.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001975/0.09109, allocations: 79.72 kB / 445.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005815/0.09168, allocations: 203.6 kB / 446.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001921/0.09189, allocations: 159.5 kB / 446.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.09201, allocations: 29.55 kB / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.991e-05/0.09211, allocations: 63.7 kB / 446.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.09222, allocations: 71.62 kB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.09224, allocations: 0 / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.09239, allocations: 55.97 kB / 446.4 MB, free: 12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.778e-05/0.0925, allocations: 43.83 kB / 446.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.09262, allocations: 97.12 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.09291, allocations: 219.5 kB / 446.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.09293, allocations: 4 kB / 446.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.687e-06/0.09294, allocations: 0 / 446.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.09295, allocations: 0 / 446.8 MB, free: 11.64 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006863/0.09364, allocations: 0.5 MB / 447.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.0937, allocations: 8.031 kB / 447.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.644e-05/0.09376, allocations: 38.75 kB / 447.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.069e-05/0.09381, allocations: 24.66 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003329/0.09415, allocations: 287.5 kB / 447.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.09418, allocations: 4.375 kB / 447.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.09421, allocations: 19.92 kB / 447.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.09454, allocations: 159.6 kB / 447.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.09456, allocations: 0 / 447.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.09458, allocations: 0 / 447.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.0946, allocations: 8 kB / 447.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.0947, allocations: 35.91 kB / 447.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000444/0.09515, allocations: 382.3 kB / 448.2 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/0.09537, allocations: 123.8 kB / 448.4 MB, free: 9.852 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.271e-05/0.09546, allocations: 46.56 kB / 448.4 MB, free: 9.797 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.09549, allocations: 0 / 448.4 MB, free: 9.797 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001836/0.09568, allocations: 83.38 kB / 448.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.09569, allocations: 0 / 448.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003295/0.09602, allocations: 153.3 kB / 448.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.09608, allocations: 162.2 kB / 448.8 MB, free: 9.352 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.09633, allocations: 338.8 kB / 449.1 MB, free: 9.012 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.09636, allocations: 25.7 kB / 449.2 MB, free: 8.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.143e-05/0.09642, allocations: 128.1 kB / 449.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.09645, allocations: 23.86 kB / 449.3 MB, free: 8.828 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-06/0.09646, allocations: 0 / 449.3 MB, free: 8.828 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.569e-05/0.09656, allocations: 330.8 kB / 449.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.183e-05/0.09663, allocations: 19.98 kB / 449.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.359e-05/0.09672, allocations: 94.78 kB / 449.7 MB, free: 8.359 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.09685, allocations: 80.22 kB / 449.8 MB, free: 8.266 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.09686, allocations: 0 / 449.8 MB, free: 8.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001816/0.09705, allocations: 121.4 kB / 449.9 MB, free: 8.141 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.09708, allocations: 8 kB / 449.9 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.09709, allocations: 3.984 kB / 449.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.09711, allocations: 4 kB / 450 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.976e-05/0.09721, allocations: 15.94 kB / 450 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.09723, allocations: 4 kB / 450 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.454e-05/0.09731, allocations: 19.77 kB / 450 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.09732, allocations: 8.125 kB / 450 MB, free: 8.078 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001088/0.09744, allocations: 150.7 kB / 450.1 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.333e-05/0.09751, allocations: 69.34 kB / 450.2 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.835e-05/0.09756, allocations: 25.7 kB / 450.2 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.09757, allocations: 4 kB / 450.2 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.09758, allocations: 3.938 kB / 450.2 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.09759, allocations: 3.938 kB / 450.2 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.09776, allocations: 233.6 kB / 450.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.09777, allocations: 4.312 kB / 450.5 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.387e-05/0.09784, allocations: 19.98 kB / 450.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.09785, allocations: 3.938 kB / 450.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.09786, allocations: 4 kB / 450.5 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.09787, allocations: 4 kB / 450.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.09788, allocations: 0 / 450.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002296/0.09811, allocations: 174.4 kB / 450.7 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.948e-05/0.0982, allocations: 108.9 kB / 450.8 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.09824, allocations: 4 kB / 450.8 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.358e-05/0.09831, allocations: 4 kB / 450.8 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/0.09836, allocations: 11.92 kB / 450.8 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.09838, allocations: 8 kB / 450.8 MB, free: 7.152 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001768/0.09856, allocations: 241.9 kB / 451.1 MB, free: 6.914 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09857, allocations: 0 / 451.1 MB, free: 6.914 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000236/0.09881, allocations: 39.84 kB / 451.1 MB, free: 6.875 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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 (9): * Single equations (assignments): 7 * 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.001131/0.09995, allocations: 1.01 MB / 452.1 MB, free: 5.828 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001924/0.1002, allocations: 79.91 kB / 452.2 MB, free: 5.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1002, allocations: 3.938 kB / 452.2 MB, free: 5.746 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.976e-05/0.1002, allocations: 27.98 kB / 452.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.1007, allocations: 64.42 kB / 452.3 MB, free: 5.656 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.1026, allocations: 2.228 MB / 454.5 MB, free: 3.312 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001513/0.1028, allocations: 0.74 MB / 455.2 MB, free: 2.547 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.871e-05/0.1028, allocations: 29.52 kB / 455.3 MB, free: 2.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.098e-05/0.1029, allocations: 55.36 kB / 455.3 MB, free: 2.469 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1029, allocations: 8 kB / 455.3 MB, free: 2.461 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01566/0.1186, allocations: 4.697 MB / 460 MB, free: 13.75 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002059/0.1188, allocations: 270.4 kB / 460.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/1.977, allocations: 0 / 460.3 MB, free: 13.39 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat does not exist to compare? outputFormat=mat