Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.002186/0.002191, allocations: 187.1 kB / 15.81 MB, free: 6.027 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.353/2.353, allocations: 205.4 MB / 221.9 MB, free: 13.7 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.00113/0.001129, allocations: 94.84 kB / 270.3 MB, free: 13.21 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.1078/0.1078, allocations: 12.6 MB / 331.1 MB, free: 10.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000574/0.0005741, allocations: 16.34 kB / 392.1 MB, free: 54.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1111, allocations: 50.37 MB / 442.5 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003007/0.1141, allocations: 1.534 MB / 444 MB, free: 9.227 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.1162, allocations: 0.9564 MB / 445 MB, free: 8.262 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.1165, allocations: 7.938 kB / 445 MB, free: 8.254 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000374/0.1168, allocations: 47.86 kB / 445 MB, free: 8.207 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002825/0.1171, allocations: 87.7 kB / 445.1 MB, free: 8.121 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000941/0.1181, allocations: 191.2 kB / 445.3 MB, free: 7.938 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002496/0.1184, allocations: 99.81 kB / 445.4 MB, free: 7.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.1185, allocations: 33.47 kB / 445.4 MB, free: 7.805 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.1186, allocations: 63.7 kB / 445.5 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.1188, allocations: 59.69 kB / 445.6 MB, free: 7.684 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.481e-05/0.1188, allocations: 4 kB / 445.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.119, allocations: 47.91 kB / 445.6 MB, free: 7.633 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.042e-05/0.1191, allocations: 35.89 kB / 445.6 MB, free: 7.598 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.595e-05/0.1192, allocations: 57.58 kB / 445.7 MB, free: 7.535 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.1195, allocations: 168.5 kB / 445.9 MB, free: 7.371 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.1195, allocations: 3.938 kB / 445.9 MB, free: 7.367 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1195, allocations: 0 / 445.9 MB, free: 7.367 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.1195, allocations: 4 kB / 445.9 MB, free: 7.363 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.0007916/0.1203, allocations: 0.4999 MB / 446.4 MB, free: 6.809 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.1204, allocations: 8.031 kB / 446.4 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.56e-05/0.1204, allocations: 42.55 kB / 446.4 MB, free: 6.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.895e-05/0.1205, allocations: 23.72 kB / 446.4 MB, free: 6.727 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/0.1209, allocations: 270.5 kB / 446.7 MB, free: 6.418 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.121, allocations: 8 kB / 446.7 MB, free: 6.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.504e-05/0.121, allocations: 4 kB / 446.7 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004073/0.1214, allocations: 163.5 kB / 446.9 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.1215, allocations: 0 / 446.9 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.1215, allocations: 0 / 446.9 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1215, allocations: 0 / 446.9 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.1217, allocations: 35.98 kB / 446.9 MB, free: 6.184 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006174/0.1223, allocations: 386.3 kB / 447.3 MB, free: 5.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.1226, allocations: 123.9 kB / 447.4 MB, free: 5.602 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.1227, allocations: 4 kB / 447.4 MB, free: 5.598 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.123, allocations: 79.44 kB / 447.5 MB, free: 5.508 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.455e-06/0.123, allocations: 0 / 447.5 MB, free: 5.508 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005418/0.1235, allocations: 153.3 kB / 447.6 MB, free: 5.352 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/0.1236, allocations: 162.2 kB / 447.8 MB, free: 5.156 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004339/0.124, allocations: 330.6 kB / 448.1 MB, free: 4.824 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.1241, allocations: 29.7 kB / 448.2 MB, free: 4.789 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.258e-05/0.1242, allocations: 128 kB / 448.3 MB, free: 4.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.1242, allocations: 15.89 kB / 448.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.709e-06/0.1243, allocations: 4.25 kB / 448.3 MB, free: 4.641 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.141e-05/0.1244, allocations: 334.8 kB / 448.6 MB, free: 4.305 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.1245, allocations: 23.92 kB / 448.6 MB, free: 4.281 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.1247, allocations: 86.78 kB / 448.7 MB, free: 4.172 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.1248, allocations: 32 kB / 448.8 MB, free: 4.141 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1248, allocations: 0 / 448.8 MB, free: 4.141 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003691/0.1252, allocations: 129.2 kB / 448.9 MB, free: 4.008 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.1253, allocations: 8 kB / 448.9 MB, free: 4 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1253, allocations: 0 / 448.9 MB, free: 4 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.1253, allocations: 4 kB / 448.9 MB, free: 3.996 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.1255, allocations: 19.92 kB / 448.9 MB, free: 3.977 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1255, allocations: 12.06 kB / 448.9 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/0.1257, allocations: 7.953 kB / 448.9 MB, free: 3.957 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.1257, allocations: 4 kB / 448.9 MB, free: 3.953 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,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 (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.0001876/0.1259, allocations: 157.5 kB / 449.1 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.126, allocations: 69.34 kB / 449.2 MB, free: 3.715 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.115e-05/0.1261, allocations: 25.75 kB / 449.2 MB, free: 3.695 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.1261, allocations: 7.984 kB / 449.2 MB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1261, allocations: 4.062 kB / 449.2 MB, free: 3.684 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1262, allocations: 0 / 449.2 MB, free: 3.684 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002407/0.1264, allocations: 241.6 kB / 449.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.237e-06/0.1264, allocations: 0 / 449.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.1265, allocations: 12.3 kB / 449.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.1266, allocations: 4 kB / 449.5 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.1266, allocations: 4 kB / 449.5 MB, free: 3.379 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.1266, allocations: 4 kB / 449.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1266, allocations: 0 / 449.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003905/0.127, allocations: 189.9 kB / 449.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.1272, allocations: 116.8 kB / 449.8 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.622e-05/0.1272, allocations: 4 kB / 449.8 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.1274, allocations: 7.984 kB / 449.8 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.202e-05/0.1274, allocations: 15.94 kB / 449.8 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.1275, allocations: 11.94 kB / 449.8 MB, free: 2.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000304/0.1278, allocations: 233.9 kB / 450 MB, free: 2.75 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1278, allocations: 0 / 450 MB, free: 2.75 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003782/0.1282, allocations: 35.98 kB / 450.1 MB, free: 2.715 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,shiftSample1.y,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 (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.001667/0.1299, allocations: 1.179 MB / 451.2 MB, free: 1.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003691/0.1303, allocations: 71.89 kB / 451.3 MB, free: 1.43 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.1303, allocations: 0 / 451.3 MB, free: 1.43 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.1304, allocations: 32.17 kB / 451.3 MB, free: 1.398 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005234/0.131, allocations: 64.25 kB / 451.4 MB, free: 1.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.1336, allocations: 1.73 MB / 453.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.1341, allocations: 0.7517 MB / 453.9 MB, free: 14.76 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000167/0.1342, allocations: 25.53 kB / 453.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.1344, allocations: 55.42 kB / 454 MB, free: 14.68 MB / 298.7 MB Notification: Performance of SimCode: time 1.422e-06/0.1344, allocations: 0 / 454 MB, free: 14.68 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0332/0.1676, allocations: 4.673 MB / 458.6 MB, free: 10 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004026/0.1681, allocations: 248 kB / 458.9 MB, free: 9.684 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.626/2.794, allocations: 0 / 458.9 MB, free: 9.684 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat