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.001606/0.001606, allocations: 176.1 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.621/1.621, 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.0007905/0.0007907, allocations: 90.31 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.0764/0.0764, allocations: 12.6 MB / 331.2 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004783/0.0004784, allocations: 20.52 kB / 392.1 MB, free: 54.85 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1054, allocations: 50.37 MB / 442.5 MB, free: 10.89 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.001762/0.1072, allocations: 1.572 MB / 444.1 MB, free: 9.301 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.1086, allocations: 1.011 MB / 445.1 MB, free: 8.281 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.1088, allocations: 0 / 445.1 MB, free: 8.281 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.000245/0.109, allocations: 67.72 kB / 445.1 MB, free: 8.215 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.1092, allocations: 71.73 kB / 445.2 MB, free: 8.145 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006342/0.1099, allocations: 209.1 kB / 445.4 MB, free: 7.945 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.1101, allocations: 155.5 kB / 445.6 MB, free: 7.793 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 9.905e-05/0.1102, allocations: 21.55 kB / 445.6 MB, free: 7.77 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 9.326e-05/0.1103, allocations: 63.69 kB / 445.7 MB, free: 7.707 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 9.495e-05/0.1104, allocations: 71.69 kB / 445.7 MB, free: 7.637 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.1104, allocations: 7.938 kB / 445.7 MB, free: 7.629 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001857/0.1106, allocations: 51.86 kB / 445.8 MB, free: 7.578 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 7.176e-05/0.1107, allocations: 47.81 kB / 445.8 MB, free: 7.531 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 5.503e-05/0.1107, allocations: 53.58 kB / 445.9 MB, free: 7.473 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002178/0.111, allocations: 176.5 kB / 446.1 MB, free: 7.301 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.111, allocations: 4 kB / 446.1 MB, free: 7.297 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.124e-06/0.111, allocations: 0 / 446.1 MB, free: 7.297 MB / 282.8 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.111, allocations: 0 / 446.1 MB, free: 7.297 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006519/0.1117, allocations: 0.5038 MB / 446.6 MB, free: 6.738 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.1117, allocations: 12.03 kB / 446.6 MB, free: 6.727 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.1117, allocations: 42.55 kB / 446.6 MB, free: 6.676 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.1118, allocations: 23.72 kB / 446.6 MB, free: 6.652 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.1121, allocations: 286.3 kB / 446.9 MB, free: 6.328 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.1121, allocations: 8 kB / 446.9 MB, free: 6.32 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.919e-05/0.1122, allocations: 4 kB / 446.9 MB, free: 6.316 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003617/0.1125, allocations: 192.2 kB / 447.1 MB, free: 6.098 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1126, allocations: 0 / 447.1 MB, free: 6.098 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.1126, allocations: 0 / 447.1 MB, free: 6.098 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1126, allocations: 4 kB / 447.1 MB, free: 6.094 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00012/0.1127, allocations: 43.91 kB / 447.2 MB, free: 6.051 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005042/0.1132, allocations: 395.2 kB / 447.6 MB, free: 5.605 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.1135, allocations: 154.5 kB / 447.7 MB, free: 5.418 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.955e-05/0.1136, allocations: 55.42 kB / 447.8 MB, free: 5.352 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.1136, allocations: 7.984 kB / 447.8 MB, free: 5.344 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001704/0.1138, allocations: 79.33 kB / 447.8 MB, free: 5.254 MB / 282.8 MB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.1138, allocations: 0 / 447.8 MB, free: 5.254 MB / 282.8 MB Notification: Performance of matching and sorting (n=11): time 0.0003507/0.1141, allocations: 165.3 kB / 448 MB, free: 5.086 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.1142, allocations: 200.2 kB / 448.2 MB, free: 4.848 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/0.1145, allocations: 334.6 kB / 448.5 MB, free: 4.512 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.1145, allocations: 25.7 kB / 448.6 MB, free: 4.48 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.517e-05/0.1146, allocations: 132.4 kB / 448.7 MB, free: 4.348 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.1146, allocations: 19.75 kB / 448.7 MB, free: 4.328 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.1147, allocations: 0 / 448.7 MB, free: 4.328 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 7.268e-05/0.1147, allocations: 334.8 kB / 449 MB, free: 3.992 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.829e-05/0.1148, allocations: 27.98 kB / 449.1 MB, free: 3.965 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.472e-05/0.1149, allocations: 96.56 kB / 449.1 MB, free: 3.84 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.63e-05/0.115, allocations: 39.94 kB / 449.2 MB, free: 3.801 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.115, allocations: 0 / 449.2 MB, free: 3.801 MB / 282.8 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002044/0.1152, allocations: 133.3 kB / 449.3 MB, free: 3.664 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1152, allocations: 11.94 kB / 449.3 MB, free: 3.652 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1152, allocations: 0 / 449.3 MB, free: 3.652 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.1153, allocations: 7.938 kB / 449.3 MB, free: 3.645 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.1154, allocations: 23.92 kB / 449.4 MB, free: 3.621 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1154, allocations: 7.953 kB / 449.4 MB, free: 3.613 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.171e-05/0.1155, allocations: 12.09 kB / 449.4 MB, free: 3.602 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.1155, allocations: 11.98 kB / 449.4 MB, free: 3.59 MB / 282.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.1156, allocations: 157.5 kB / 449.5 MB, free: 3.426 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.769e-05/0.1157, allocations: 81.34 kB / 449.6 MB, free: 3.34 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.91e-05/0.1158, allocations: 29.7 kB / 449.7 MB, free: 3.316 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1158, allocations: 0 / 449.7 MB, free: 3.316 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.1158, allocations: 4 kB / 449.7 MB, free: 3.312 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.1158, allocations: 8.047 kB / 449.7 MB, free: 3.305 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.1159, allocations: 249.9 kB / 449.9 MB, free: 3.012 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.116, allocations: 4 kB / 449.9 MB, free: 3.008 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.031e-05/0.116, allocations: 16 kB / 449.9 MB, free: 2.992 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.116, allocations: 0 / 449.9 MB, free: 2.992 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.1161, allocations: 7.984 kB / 449.9 MB, free: 2.984 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1161, allocations: 0 / 449.9 MB, free: 2.984 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1161, allocations: 0 / 449.9 MB, free: 2.984 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/0.1163, allocations: 187.2 kB / 450.1 MB, free: 2.773 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 7.661e-05/0.1164, allocations: 120.8 kB / 450.2 MB, free: 2.637 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.1164, allocations: 4 kB / 450.2 MB, free: 2.633 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.775e-05/0.1165, allocations: 4 kB / 450.2 MB, free: 2.629 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.468e-05/0.1166, allocations: 7.984 kB / 450.3 MB, free: 2.621 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.1166, allocations: 15.98 kB / 450.3 MB, free: 2.605 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0001786/0.1168, allocations: 241.9 kB / 450.5 MB, free: 2.367 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1168, allocations: 0 / 450.5 MB, free: 2.367 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002632/0.117, allocations: 35.98 kB / 450.5 MB, free: 2.332 MB / 282.8 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 (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.001175/0.1182, allocations: 1.039 MB / 451.6 MB, free: 1.266 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0002114/0.1185, allocations: 83.84 kB / 451.7 MB, free: 1.184 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1185, allocations: 0 / 451.7 MB, free: 1.184 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 8.437e-05/0.1186, allocations: 27.98 kB / 451.7 MB, free: 1.156 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.119, allocations: 69.48 kB / 451.8 MB, free: 1.086 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.1205, allocations: 1.248 MB / 453 MB, free: 15.77 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.1209, allocations: 0.7515 MB / 453.8 MB, free: 14.99 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 9.566e-05/0.121, allocations: 21.55 kB / 453.8 MB, free: 14.97 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.99e-05/0.1211, allocations: 63.41 kB / 453.8 MB, free: 14.91 MB / 298.8 MB Notification: Performance of SimCode: time 2.6e-07/0.1211, allocations: 0 / 453.8 MB, free: 14.91 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.1389, allocations: 4.961 MB / 458.8 MB, free: 9.941 MB / 298.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002288/0.1392, allocations: 256.9 kB / 459.1 MB, free: 9.602 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/1.931, allocations: 8 kB / 459.1 MB, free: 9.594 MB / 298.8 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