Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",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.001273/0.001273, 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.411/1.411, allocations: 205.4 MB / 222.3 MB, free: 9.023 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.0007522/0.0007522, allocations: 91.8 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.08366/0.08366, allocations: 12.59 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003692, allocations: 12 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.108, allocations: 50.37 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.002698/0.1108, allocations: 1.602 MB / 444.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001992/0.1128, allocations: 1.045 MB / 445.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.113, allocations: 0 / 445.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003799/0.1134, allocations: 67.8 kB / 445.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002607/0.1137, allocations: 83.66 kB / 445.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000896/0.1146, allocations: 211.6 kB / 446.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002843/0.1149, allocations: 167.5 kB / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.115, allocations: 25.84 kB / 446.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.1152, allocations: 79.56 kB / 446.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1153, allocations: 67.69 kB / 446.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.852e-05/0.1154, allocations: 4 kB / 446.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.1156, allocations: 59.89 kB / 446.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.76e-05/0.1157, allocations: 43.84 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.1158, allocations: 101.1 kB / 446.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.1162, allocations: 223.2 kB / 446.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1162, allocations: 11.94 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1162, allocations: 0 / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1162, allocations: 0 / 446.9 MB, free: 11.52 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.0007841/0.117, allocations: 0.5039 MB / 447.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.1171, allocations: 12.03 kB / 447.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.581e-05/0.1171, allocations: 42.73 kB / 447.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.693e-05/0.1172, allocations: 24.66 kB / 447.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.1177, allocations: 295.4 kB / 447.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.1177, allocations: 8.375 kB / 447.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.408e-05/0.1177, allocations: 15.88 kB / 447.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004756/0.1182, allocations: 180.4 kB / 448 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1183, allocations: 0 / 448 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1183, allocations: 8 kB / 448 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1183, allocations: 0 / 448 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.1185, allocations: 47.91 kB / 448 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.119, allocations: 399.1 kB / 448.4 MB, free: 9.809 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003235/0.1194, allocations: 138.5 kB / 448.6 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.1195, allocations: 55.42 kB / 448.6 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.1196, allocations: 15.92 kB / 448.6 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002314/0.1198, allocations: 67.39 kB / 448.7 MB, free: 9.477 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.944e-06/0.1198, allocations: 0 / 448.7 MB, free: 9.477 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005226/0.1204, allocations: 177.2 kB / 448.9 MB, free: 9.297 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.1204, allocations: 187.9 kB / 449.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004039/0.1209, allocations: 338.6 kB / 449.4 MB, free: 8.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.1209, allocations: 25.7 kB / 449.4 MB, free: 8.699 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.546e-05/0.121, allocations: 132.3 kB / 449.5 MB, free: 8.566 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.727e-05/0.121, allocations: 16.11 kB / 449.6 MB, free: 8.551 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.766e-06/0.121, allocations: 12 kB / 449.6 MB, free: 8.539 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.303e-05/0.1211, allocations: 330.8 kB / 449.9 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.883e-05/0.1212, allocations: 23.98 kB / 449.9 MB, free: 8.184 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.1214, allocations: 100.5 kB / 450 MB, free: 8.055 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.1216, allocations: 109.9 kB / 450.1 MB, free: 7.926 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.217e-06/0.1216, allocations: 4 kB / 450.1 MB, free: 7.922 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003526/0.122, allocations: 137.3 kB / 450.3 MB, free: 7.781 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.122, allocations: 4.781 kB / 450.3 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.1221, allocations: 4 kB / 450.3 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1221, allocations: 3.984 kB / 450.3 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.1222, allocations: 23.94 kB / 450.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1223, allocations: 320 / 450.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.1224, allocations: 23.83 kB / 450.3 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.1224, allocations: 12.19 kB / 450.3 MB, free: 7.711 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.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 0.0001439/0.1226, allocations: 154.6 kB / 450.5 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.1227, allocations: 73.44 kB / 450.5 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.671e-05/0.1228, allocations: 25.7 kB / 450.6 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1228, allocations: 4 kB / 450.6 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1228, allocations: 0 / 450.6 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1228, allocations: 7.938 kB / 450.6 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/0.1231, allocations: 249.6 kB / 450.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1231, allocations: 4 kB / 450.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.1232, allocations: 19.92 kB / 450.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.1232, allocations: 7.938 kB / 450.9 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.1232, allocations: 0 / 450.9 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1232, allocations: 4 kB / 450.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1232, allocations: 0 / 450.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003339/0.1236, allocations: 187.2 kB / 451 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.1237, allocations: 120.8 kB / 451.2 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.463e-05/0.1238, allocations: 7.984 kB / 451.2 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.1239, allocations: 4 kB / 451.2 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.161e-05/0.124, allocations: 15.92 kB / 451.2 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.124, allocations: 8.047 kB / 451.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002718/0.1243, allocations: 241.9 kB / 451.4 MB, free: 6.488 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1243, allocations: 4 kB / 451.4 MB, free: 6.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004481/0.1247, allocations: 35.98 kB / 451.5 MB, free: 6.449 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,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.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.001709/0.1265, allocations: 1.031 MB / 452.5 MB, free: 5.379 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002771/0.1268, allocations: 79.91 kB / 452.6 MB, free: 5.301 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.1268, allocations: 0 / 452.6 MB, free: 5.301 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.1269, allocations: 31.92 kB / 452.6 MB, free: 5.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006339/0.1275, allocations: 73.48 kB / 452.7 MB, free: 5.195 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.1307, allocations: 2.343 MB / 455 MB, free: 2.723 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.131, allocations: 0.7398 MB / 455.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001584/0.1312, allocations: 33.77 kB / 455.8 MB, free: 1.926 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.1313, allocations: 59.42 kB / 455.9 MB, free: 1.867 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.1313, allocations: 0 / 455.9 MB, free: 1.867 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02169/0.153, allocations: 5.047 MB / 460.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003463/0.1534, allocations: 271.5 kB / 461.2 MB, free: 12.44 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.11, allocations: 0 / 461.2 MB, free: 12.44 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat