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.001581/0.001585, allocations: 184.9 kB / 15.81 MB, free: 6.352 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.38/2.38, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001119/0.001119, allocations: 90.86 kB / 270.3 MB, free: 13.34 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.1004/0.1004, allocations: 12.6 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000554/0.0005543, allocations: 12.84 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1046, allocations: 50.37 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.002594/0.1072, allocations: 1.538 MB / 444 MB, free: 9.254 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001974/0.1092, allocations: 0.933 MB / 445 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/0.1095, allocations: 7.938 kB / 445 MB, free: 8.305 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003555/0.1098, allocations: 55.78 kB / 445 MB, free: 8.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002814/0.1101, allocations: 83.77 kB / 445.1 MB, free: 8.168 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009285/0.1111, allocations: 191.2 kB / 445.3 MB, free: 7.984 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.1113, allocations: 103.8 kB / 445.4 MB, free: 7.883 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.1115, allocations: 25.55 kB / 445.4 MB, free: 7.855 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.1116, allocations: 63.75 kB / 445.5 MB, free: 7.793 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.1117, allocations: 59.69 kB / 445.5 MB, free: 7.734 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/0.1118, allocations: 11.88 kB / 445.5 MB, free: 7.723 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.112, allocations: 39.98 kB / 445.6 MB, free: 7.684 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.728e-05/0.1121, allocations: 43.81 kB / 445.6 MB, free: 7.641 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.38e-05/0.1121, allocations: 53.64 kB / 445.7 MB, free: 7.582 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002654/0.1124, allocations: 164.5 kB / 445.8 MB, free: 7.422 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.1124, allocations: 0 / 445.8 MB, free: 7.422 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1124, allocations: 0 / 445.8 MB, free: 7.422 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1124, allocations: 0 / 445.8 MB, free: 7.422 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007589/0.1132, allocations: 0.5077 MB / 446.3 MB, free: 6.859 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1133, allocations: 8.031 kB / 446.4 MB, free: 6.852 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.58e-05/0.1133, allocations: 42.55 kB / 446.4 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.772e-05/0.1134, allocations: 23.72 kB / 446.4 MB, free: 6.777 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.1138, allocations: 270.5 kB / 446.7 MB, free: 6.469 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.1139, allocations: 8 kB / 446.7 MB, free: 6.461 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.1139, allocations: 7.938 kB / 446.7 MB, free: 6.453 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004022/0.1143, allocations: 159.6 kB / 446.9 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1143, allocations: 3.938 kB / 446.9 MB, free: 6.266 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.1144, allocations: 0 / 446.9 MB, free: 6.266 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.1144, allocations: 3.984 kB / 446.9 MB, free: 6.262 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.1146, allocations: 39.92 kB / 446.9 MB, free: 6.223 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000605/0.1152, allocations: 382.4 kB / 447.3 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.1155, allocations: 123.9 kB / 447.4 MB, free: 5.645 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.1156, allocations: 4 kB / 447.4 MB, free: 5.641 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.1158, allocations: 71.45 kB / 447.5 MB, free: 5.559 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.615e-06/0.1159, allocations: 0 / 447.5 MB, free: 5.559 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005407/0.1164, allocations: 157.3 kB / 447.6 MB, free: 5.398 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.823e-05/0.1165, allocations: 166.1 kB / 447.8 MB, free: 5.199 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.1169, allocations: 330.6 kB / 448.1 MB, free: 4.867 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.117, allocations: 29.7 kB / 448.1 MB, free: 4.832 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.827e-05/0.1171, allocations: 128 kB / 448.3 MB, free: 4.703 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.155e-05/0.1171, allocations: 15.97 kB / 448.3 MB, free: 4.688 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-06/0.1171, allocations: 4 kB / 448.3 MB, free: 4.684 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.761e-05/0.1172, allocations: 339.1 kB / 448.6 MB, free: 4.344 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.1173, allocations: 19.98 kB / 448.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.1175, allocations: 82.84 kB / 448.7 MB, free: 4.219 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.1177, allocations: 32 kB / 448.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.1177, allocations: 0 / 448.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000349/0.1181, allocations: 129.2 kB / 448.9 MB, free: 4.055 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1181, allocations: 8 kB / 448.9 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1181, allocations: 0 / 448.9 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.1182, allocations: 0 / 448.9 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.1183, allocations: 19.94 kB / 448.9 MB, free: 4.027 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.1184, allocations: 19.98 kB / 448.9 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.1185, allocations: 7.953 kB / 448.9 MB, free: 4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.1185, allocations: 4 kB / 448.9 MB, free: 3.996 MB / 282.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001777/0.1187, allocations: 153.5 kB / 449.1 MB, free: 3.836 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.1188, allocations: 69.66 kB / 449.1 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.136e-05/0.1189, allocations: 29.7 kB / 449.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1189, allocations: 0 / 449.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.119, allocations: 8.062 kB / 449.2 MB, free: 3.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.119, allocations: 4 kB / 449.2 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002335/0.1192, allocations: 237.5 kB / 449.4 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.1192, allocations: 0 / 449.4 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.1194, allocations: 11.98 kB / 449.4 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.1194, allocations: 4 kB / 449.4 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.1194, allocations: 0 / 449.4 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1194, allocations: 4 kB / 449.4 MB, free: 3.426 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1194, allocations: 3.938 kB / 449.4 MB, free: 3.422 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/0.1198, allocations: 189.9 kB / 449.6 MB, free: 3.199 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.1199, allocations: 112.8 kB / 449.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.516e-05/0.12, allocations: 8 kB / 449.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.1201, allocations: 7.984 kB / 449.8 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.81e-05/0.1202, allocations: 11.95 kB / 449.8 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.1202, allocations: 11.98 kB / 449.8 MB, free: 3.031 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002984/0.1205, allocations: 233.9 kB / 450 MB, free: 2.801 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.1205, allocations: 0 / 450 MB, free: 2.801 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003833/0.1209, allocations: 35.98 kB / 450 MB, free: 2.766 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: 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 (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.001706/0.1227, allocations: 1.183 MB / 451.2 MB, free: 1.547 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003553/0.1231, allocations: 71.89 kB / 451.3 MB, free: 1.477 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.1231, allocations: 0 / 451.3 MB, free: 1.477 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.1232, allocations: 31.92 kB / 451.3 MB, free: 1.445 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005224/0.1237, allocations: 64.53 kB / 451.4 MB, free: 1.387 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.1263, allocations: 1.73 MB / 453.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.1268, allocations: 0.7517 MB / 453.9 MB, free: 14.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001782/0.127, allocations: 25.53 kB / 453.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.1272, allocations: 59.36 kB / 454 MB, free: 14.73 MB / 298.7 MB Notification: Performance of SimCode: time 1.242e-06/0.1272, allocations: 0 / 454 MB, free: 14.73 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03313/0.1603, allocations: 4.625 MB / 458.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003659/0.1608, allocations: 245.7 kB / 458.8 MB, free: 9.812 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.735/2.896, allocations: 0 / 458.8 MB, free: 9.812 MB / 298.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