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.001007/0.001007, allocations: 177 kB / 15.82 MB, free: 6.305 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.478/1.478, allocations: 205.4 MB / 222 MB, free: 13.85 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008791/0.0008792, allocations: 98.23 kB / 270.3 MB, free: 13.38 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0737/0.0737, allocations: 12.59 MB / 331.1 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004941/0.0004941, allocations: 13.5 kB / 392.1 MB, free: 54.81 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.109, allocations: 50.38 MB / 442.5 MB, free: 10.88 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002058/0.1111, allocations: 1.541 MB / 444 MB, free: 9.32 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.1125, allocations: 0.9876 MB / 445 MB, free: 8.324 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.1127, allocations: 3.938 kB / 445 MB, free: 8.32 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.000346/0.113, allocations: 63.78 kB / 445.1 MB, free: 8.258 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.1133, allocations: 79.72 kB / 445.2 MB, free: 8.18 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006845/0.114, allocations: 193.1 kB / 445.4 MB, free: 7.996 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.1142, allocations: 143.5 kB / 445.5 MB, free: 7.855 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1143, allocations: 21.55 kB / 445.5 MB, free: 7.832 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 9.667e-05/0.1144, allocations: 67.69 kB / 445.6 MB, free: 7.766 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 9.135e-05/0.1145, allocations: 63.69 kB / 445.6 MB, free: 7.703 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.1146, allocations: 8 kB / 445.7 MB, free: 7.695 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.1147, allocations: 43.98 kB / 445.7 MB, free: 7.652 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 7.597e-05/0.1148, allocations: 43.83 kB / 445.7 MB, free: 7.609 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 5.382e-05/0.1148, allocations: 57.52 kB / 445.8 MB, free: 7.547 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.1151, allocations: 172.5 kB / 446 MB, free: 7.379 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1151, allocations: 0 / 446 MB, free: 7.379 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1151, allocations: 0 / 446 MB, free: 7.379 MB / 282.8 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1151, allocations: 0 / 446 MB, free: 7.379 MB / 282.8 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.0006842/0.1158, allocations: 0.4999 MB / 446.5 MB, free: 6.824 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.1158, allocations: 15.97 kB / 446.5 MB, free: 6.809 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.006e-05/0.1159, allocations: 42.55 kB / 446.5 MB, free: 6.758 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.937e-05/0.1159, allocations: 23.66 kB / 446.5 MB, free: 6.734 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002963/0.1162, allocations: 270.5 kB / 446.8 MB, free: 6.426 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.1163, allocations: 8 kB / 446.8 MB, free: 6.418 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.1163, allocations: 4 kB / 446.8 MB, free: 6.414 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003149/0.1166, allocations: 159.6 kB / 447 MB, free: 6.23 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.1166, allocations: 0 / 447 MB, free: 6.23 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.1167, allocations: 7.922 kB / 447 MB, free: 6.223 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1167, allocations: 0 / 447 MB, free: 6.223 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.1168, allocations: 35.98 kB / 447 MB, free: 6.188 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004779/0.1173, allocations: 390.3 kB / 447.4 MB, free: 5.75 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.1175, allocations: 115.9 kB / 447.5 MB, free: 5.609 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.1177, allocations: 46.56 kB / 447.6 MB, free: 5.555 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.1177, allocations: 4 kB / 447.6 MB, free: 5.551 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/0.1179, allocations: 83.31 kB / 447.6 MB, free: 5.457 MB / 282.8 MB Notification: Performance of pre-optimization done (n=9): time 1.522e-06/0.1179, allocations: 0 / 447.6 MB, free: 5.457 MB / 282.8 MB Notification: Performance of matching and sorting (n=9): time 0.0003585/0.1183, allocations: 149.3 kB / 447.8 MB, free: 5.305 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.1184, allocations: 174.1 kB / 448 MB, free: 5.098 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.1186, allocations: 322.6 kB / 448.3 MB, free: 4.773 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.1187, allocations: 33.7 kB / 448.3 MB, free: 4.734 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.67e-05/0.1188, allocations: 124 kB / 448.4 MB, free: 4.609 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.828e-05/0.1188, allocations: 15.97 kB / 448.4 MB, free: 4.594 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-06/0.1188, allocations: 0 / 448.4 MB, free: 4.594 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1189, allocations: 335.1 kB / 448.8 MB, free: 4.258 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.495e-05/0.119, allocations: 27.92 kB / 448.8 MB, free: 4.23 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.978e-05/0.1191, allocations: 90.77 kB / 448.9 MB, free: 4.117 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.453e-05/0.1192, allocations: 32 kB / 448.9 MB, free: 4.086 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1192, allocations: 0 / 448.9 MB, free: 4.086 MB / 282.8 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001927/0.1194, allocations: 125.2 kB / 449 MB, free: 3.957 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.1194, allocations: 8 kB / 449.1 MB, free: 3.949 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.1194, allocations: 0 / 449.1 MB, free: 3.949 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.1194, allocations: 4 kB / 449.1 MB, free: 3.945 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.1196, allocations: 15.98 kB / 449.1 MB, free: 3.93 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.1196, allocations: 16.02 kB / 449.1 MB, free: 3.914 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.597e-05/0.1197, allocations: 8 kB / 449.1 MB, free: 3.906 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.1197, allocations: 4 kB / 449.1 MB, free: 3.902 MB / 282.8 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.000127/0.1198, allocations: 157.5 kB / 449.3 MB, free: 3.738 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.936e-05/0.1199, allocations: 65.36 kB / 449.3 MB, free: 3.668 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.888e-05/0.1199, allocations: 25.7 kB / 449.3 MB, free: 3.648 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.12, allocations: 4 kB / 449.3 MB, free: 3.645 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.12, allocations: 4.375 kB / 449.4 MB, free: 3.641 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.12, allocations: 7.891 kB / 449.4 MB, free: 3.633 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.1201, allocations: 233.6 kB / 449.6 MB, free: 3.355 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1202, allocations: 7.938 kB / 449.6 MB, free: 3.348 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.007e-05/0.1202, allocations: 15.98 kB / 449.6 MB, free: 3.332 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1202, allocations: 0 / 449.6 MB, free: 3.332 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.1202, allocations: 4 kB / 449.6 MB, free: 3.328 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1203, allocations: 4 kB / 449.6 MB, free: 3.324 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1203, allocations: 0 / 449.6 MB, free: 3.324 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002266/0.1205, allocations: 166.4 kB / 449.8 MB, free: 3.137 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 8.768e-05/0.1206, allocations: 120.8 kB / 449.9 MB, free: 3 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.1206, allocations: 0 / 449.9 MB, free: 3 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.519e-05/0.1207, allocations: 7.984 kB / 449.9 MB, free: 2.992 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/0.1208, allocations: 11.98 kB / 449.9 MB, free: 2.98 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.1208, allocations: 4 kB / 449.9 MB, free: 2.977 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0001806/0.121, allocations: 245.9 kB / 450.2 MB, free: 2.734 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.3e-07/0.121, allocations: 0 / 450.2 MB, free: 2.734 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002415/0.1212, allocations: 39.98 kB / 450.2 MB, free: 2.695 MB / 282.8 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.00113/0.1224, allocations: 1.015 MB / 451.2 MB, free: 1.652 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.1226, allocations: 71.89 kB / 451.3 MB, free: 1.582 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1226, allocations: 3.938 kB / 451.3 MB, free: 1.578 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 7.046e-05/0.1227, allocations: 31.92 kB / 451.3 MB, free: 1.547 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.1231, allocations: 60.31 kB / 451.4 MB, free: 1.492 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.1245, allocations: 1.17 MB / 452.5 MB, free: 260 kB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.1249, allocations: 0.7361 MB / 453.3 MB, free: 15.49 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 9.382e-05/0.125, allocations: 29.52 kB / 453.3 MB, free: 15.46 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.64e-05/0.1251, allocations: 59.42 kB / 453.4 MB, free: 15.41 MB / 298.8 MB Notification: Performance of SimCode: time 5.91e-07/0.1251, allocations: 0 / 453.4 MB, free: 15.41 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.1415, allocations: 4.68 MB / 458.1 MB, free: 10.72 MB / 298.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002977/0.1418, allocations: 254.2 kB / 458.3 MB, free: 10.38 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.835/1.977, allocations: 7.844 kB / 458.3 MB, free: 10.38 MB / 298.8 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