Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",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.001048/0.001048, allocations: 173.5 kB / 15.81 MB, free: 6.281 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.54/1.54, allocations: 205.4 MB / 221.9 MB, free: 13.76 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.0008481/0.0008482, allocations: 98.22 kB / 270.3 MB, free: 13.28 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.07541/0.07541, allocations: 12.59 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004565/0.0004569, allocations: 12.88 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.09955, allocations: 50.38 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.002145/0.1018, allocations: 1.565 MB / 444.1 MB, free: 9.262 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.1033, allocations: 1.003 MB / 445.1 MB, free: 8.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.1035, allocations: 7.938 kB / 445.1 MB, free: 8.242 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003575/0.1038, allocations: 59.8 kB / 445.1 MB, free: 8.184 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002148/0.104, allocations: 75.7 kB / 445.2 MB, free: 8.109 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006279/0.1047, allocations: 203.4 kB / 445.4 MB, free: 7.914 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002072/0.1049, allocations: 147.5 kB / 445.6 MB, free: 7.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.1051, allocations: 25.55 kB / 445.6 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.384e-05/0.1052, allocations: 71.62 kB / 445.6 MB, free: 7.672 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.392e-05/0.1053, allocations: 63.69 kB / 445.7 MB, free: 7.609 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.1053, allocations: 4 kB / 445.7 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.1054, allocations: 43.97 kB / 445.8 MB, free: 7.562 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.729e-05/0.1055, allocations: 47.83 kB / 445.8 MB, free: 7.516 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.274e-05/0.1056, allocations: 57.52 kB / 445.9 MB, free: 7.453 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.1058, allocations: 176.5 kB / 446 MB, free: 7.281 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1058, allocations: 0 / 446 MB, free: 7.281 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1058, allocations: 0 / 446 MB, free: 7.281 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.1058, allocations: 4 kB / 446 MB, free: 7.277 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007009/0.1065, allocations: 0.496 MB / 446.5 MB, free: 6.727 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.1066, allocations: 12.03 kB / 446.5 MB, free: 6.715 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.171e-05/0.1066, allocations: 38.55 kB / 446.6 MB, free: 6.668 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.1067, allocations: 31.66 kB / 446.6 MB, free: 6.637 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.107, allocations: 282.4 kB / 446.9 MB, free: 6.316 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.107, allocations: 4 kB / 446.9 MB, free: 6.312 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.703e-05/0.107, allocations: 8 kB / 446.9 MB, free: 6.305 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.1073, allocations: 172.3 kB / 447.1 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.1074, allocations: 0 / 447.1 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.1074, allocations: 8 kB / 447.1 MB, free: 6.098 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1074, allocations: 0 / 447.1 MB, free: 6.098 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.1075, allocations: 47.89 kB / 447.1 MB, free: 6.051 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.108, allocations: 466.5 kB / 447.6 MB, free: 5.535 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.1083, allocations: 154.4 kB / 447.7 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.044e-05/0.1083, allocations: 59.41 kB / 447.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.1084, allocations: 8.062 kB / 447.8 MB, free: 5.27 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/0.1086, allocations: 97.03 kB / 447.9 MB, free: 5.156 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.1086, allocations: 0 / 447.9 MB, free: 5.156 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004005/0.109, allocations: 169.2 kB / 448.1 MB, free: 4.984 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.1091, allocations: 187.9 kB / 448.2 MB, free: 4.758 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.1093, allocations: 335 kB / 448.6 MB, free: 4.422 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.1094, allocations: 25.7 kB / 448.6 MB, free: 4.391 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.695e-05/0.1094, allocations: 128.4 kB / 448.7 MB, free: 4.262 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.1095, allocations: 19.75 kB / 448.7 MB, free: 4.242 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-06/0.1095, allocations: 0 / 448.7 MB, free: 4.242 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.44e-05/0.1095, allocations: 330.8 kB / 449.1 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.648e-05/0.1096, allocations: 27.98 kB / 449.1 MB, free: 3.883 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.737e-05/0.1097, allocations: 107.6 kB / 449.2 MB, free: 3.75 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.76e-05/0.1098, allocations: 31.98 kB / 449.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1098, allocations: 0 / 449.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002013/0.11, allocations: 141.5 kB / 449.4 MB, free: 3.574 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.11, allocations: 8 kB / 449.4 MB, free: 3.566 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.11, allocations: 0 / 449.4 MB, free: 3.566 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.1101, allocations: 4 kB / 449.4 MB, free: 3.562 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.1102, allocations: 23.92 kB / 449.4 MB, free: 3.539 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.1102, allocations: 3.953 kB / 449.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.939e-05/0.1103, allocations: 11.91 kB / 449.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.1103, allocations: 11.98 kB / 449.4 MB, free: 3.512 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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,shiftSample.y,hold.u,hold.y,shiftSample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.1104, allocations: 153.8 kB / 449.6 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.058e-05/0.1105, allocations: 73.44 kB / 449.6 MB, free: 3.273 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.1105, allocations: 25.7 kB / 449.7 MB, free: 3.254 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1106, allocations: 4 kB / 449.7 MB, free: 3.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.1106, allocations: 0 / 449.7 MB, free: 3.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1106, allocations: 7.891 kB / 449.7 MB, free: 3.242 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.1107, allocations: 257.3 kB / 449.9 MB, free: 2.941 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1107, allocations: 64 / 449.9 MB, free: 2.941 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.524e-05/0.1108, allocations: 19.94 kB / 450 MB, free: 2.922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1108, allocations: 4 kB / 450 MB, free: 2.918 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.1108, allocations: 7.984 kB / 450 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.1109, allocations: 4 kB / 450 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1109, allocations: 0 / 450 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.1111, allocations: 183.3 kB / 450.1 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.561e-05/0.1112, allocations: 116.8 kB / 450.3 MB, free: 2.566 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.1112, allocations: 4 kB / 450.3 MB, free: 2.562 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.775e-05/0.1113, allocations: 8 kB / 450.3 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.942e-05/0.1113, allocations: 7.984 kB / 450.3 MB, free: 2.547 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.1114, allocations: 7.984 kB / 450.3 MB, free: 2.539 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000169/0.1115, allocations: 241.9 kB / 450.5 MB, free: 2.301 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1115, allocations: 3.938 kB / 450.5 MB, free: 2.297 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002466/0.1118, allocations: 39.95 kB / 450.6 MB, free: 2.258 MB / 282.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,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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 (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.001222/0.113, allocations: 1.031 MB / 451.6 MB, free: 1.195 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002308/0.1133, allocations: 83.89 kB / 451.7 MB, free: 1.113 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1133, allocations: 0 / 451.7 MB, free: 1.113 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.676e-05/0.1134, allocations: 39.92 kB / 451.7 MB, free: 1.074 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.1138, allocations: 68.28 kB / 451.8 MB, free: 1.012 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/0.1155, allocations: 1.218 MB / 453 MB, free: 15.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.1159, allocations: 0.7439 MB / 453.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.1161, allocations: 41.47 kB / 453.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.1162, allocations: 55.42 kB / 453.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1162, allocations: 0 / 453.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.1348, allocations: 4.792 MB / 458.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002309/0.1351, allocations: 249.9 kB / 458.9 MB, free: 9.773 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.019, allocations: 0 / 458.9 MB, free: 9.773 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat