Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_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.0009595/0.0009594, allocations: 177.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.535/1.535, allocations: 205.4 MB / 222 MB, free: 13.84 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.0008403/0.0008404, allocations: 94.28 kB / 270.3 MB, free: 13.36 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.06774/0.06774, allocations: 12.6 MB / 331.2 MB, free: 10.31 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004508/0.0004512, allocations: 20.52 kB / 392.1 MB, free: 54.8 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1035, allocations: 50.38 MB / 442.5 MB, free: 10.84 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample): time 0.001456/0.1051, allocations: 1.279 MB / 443.8 MB, free: 9.551 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006362/0.1057, allocations: 0.5 MB / 444.3 MB, free: 9.043 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.897e-05/0.1058, allocations: 4 kB / 444.3 MB, free: 9.039 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 3.19e-05/0.1058, allocations: 3.938 kB / 444.3 MB, free: 9.035 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.106, allocations: 7.922 kB / 444.3 MB, free: 9.027 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002379/0.1062, allocations: 39.91 kB / 444.3 MB, free: 8.988 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 8.008e-05/0.1063, allocations: 39.86 kB / 444.4 MB, free: 8.949 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 7.876e-05/0.1064, allocations: 16.09 kB / 444.4 MB, free: 8.934 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 6.639e-05/0.1065, allocations: 23.92 kB / 444.4 MB, free: 8.91 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 4.927e-05/0.1065, allocations: 15.94 kB / 444.4 MB, free: 8.895 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.1065, allocations: 3.938 kB / 444.4 MB, free: 8.891 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.35e-05/0.1066, allocations: 4 kB / 444.4 MB, free: 8.887 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 2.77e-05/0.1066, allocations: 7.984 kB / 444.4 MB, free: 8.879 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 2.146e-05/0.1066, allocations: 37.64 kB / 444.5 MB, free: 8.836 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 7.032e-05/0.1067, allocations: 35.92 kB / 444.5 MB, free: 8.801 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1067, allocations: 0 / 444.5 MB, free: 8.801 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1067, allocations: 0 / 444.5 MB, free: 8.801 MB / 282.8 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.1067, allocations: 0 / 444.5 MB, free: 8.801 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004158/0.1071, allocations: 371.8 kB / 444.9 MB, free: 8.391 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1072, allocations: 12.03 kB / 444.9 MB, free: 8.379 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.1072, allocations: 34.56 kB / 444.9 MB, free: 8.336 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.294e-05/0.1073, allocations: 7.906 kB / 444.9 MB, free: 8.328 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.1075, allocations: 194.8 kB / 445.1 MB, free: 8.098 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.1075, allocations: 4 kB / 445.1 MB, free: 8.094 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.1075, allocations: 4 kB / 445.1 MB, free: 8.09 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002513/0.1078, allocations: 117.9 kB / 445.3 MB, free: 7.953 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.1078, allocations: 0 / 445.3 MB, free: 7.953 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.405e-06/0.1078, allocations: 0 / 445.3 MB, free: 7.953 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1078, allocations: 0 / 445.3 MB, free: 7.953 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.14e-05/0.1079, allocations: 31.92 kB / 445.3 MB, free: 7.922 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002645/0.1082, allocations: 278.5 kB / 445.6 MB, free: 7.594 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.1083, allocations: 71.8 kB / 445.6 MB, free: 7.496 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.946e-05/0.1083, allocations: 34.62 kB / 445.7 MB, free: 7.453 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.1084, allocations: 0 / 445.7 MB, free: 7.453 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.1084, allocations: 42.5 kB / 445.7 MB, free: 7.402 MB / 282.8 MB Notification: Performance of pre-optimization done (n=4): time 8.41e-07/0.1084, allocations: 4 kB / 445.7 MB, free: 7.398 MB / 282.8 MB Notification: Performance of matching and sorting (n=4): time 0.0002737/0.1087, allocations: 89.5 kB / 445.8 MB, free: 7.305 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.1087, allocations: 102.8 kB / 445.9 MB, free: 7.18 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.152e-05/0.1088, allocations: 153.9 kB / 446 MB, free: 7.02 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 7.755e-06/0.1089, allocations: 29.7 kB / 446.1 MB, free: 6.984 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.508e-05/0.1089, allocations: 96.03 kB / 446.2 MB, free: 6.887 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.118e-05/0.1089, allocations: 7.875 kB / 446.2 MB, free: 6.879 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-06/0.1089, allocations: 4 kB / 446.2 MB, free: 6.875 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 4.536e-05/0.109, allocations: 310.8 kB / 446.5 MB, free: 6.562 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.286e-05/0.109, allocations: 19.92 kB / 446.5 MB, free: 6.543 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.508e-05/0.1091, allocations: 39.41 kB / 446.5 MB, free: 6.492 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.603e-05/0.1091, allocations: 16 kB / 446.6 MB, free: 6.477 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1091, allocations: 0 / 446.6 MB, free: 6.477 MB / 282.8 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001163/0.1093, allocations: 77.52 kB / 446.6 MB, free: 6.395 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.1093, allocations: 4 kB / 446.6 MB, free: 6.391 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1093, allocations: 0 / 446.6 MB, free: 6.391 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.1093, allocations: 4 kB / 446.6 MB, free: 6.387 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.752e-05/0.1094, allocations: 15.92 kB / 446.7 MB, free: 6.371 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.1094, allocations: 3.953 kB / 446.7 MB, free: 6.367 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.17e-05/0.1095, allocations: 8 kB / 446.7 MB, free: 6.359 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.1095, allocations: 4 kB / 446.7 MB, free: 6.355 MB / 282.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.129e-05/0.1095, allocations: 121.8 kB / 446.8 MB, free: 6.227 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.164e-05/0.1096, allocations: 53.53 kB / 446.8 MB, free: 6.168 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.884e-05/0.1096, allocations: 19.81 kB / 446.9 MB, free: 6.148 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1096, allocations: 4 kB / 446.9 MB, free: 6.145 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1097, allocations: 4 kB / 446.9 MB, free: 6.141 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1097, allocations: 3.953 kB / 446.9 MB, free: 6.137 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.1098, allocations: 169.7 kB / 447 MB, free: 5.922 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1098, allocations: 0 / 447 MB, free: 5.922 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.59e-05/0.1099, allocations: 16.05 kB / 447.1 MB, free: 5.906 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1099, allocations: 0 / 447.1 MB, free: 5.906 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.1099, allocations: 4 kB / 447.1 MB, free: 5.902 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.1099, allocations: 0 / 447.1 MB, free: 5.902 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1099, allocations: 0 / 447.1 MB, free: 5.902 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001439/0.1101, allocations: 189 kB / 447.2 MB, free: 5.695 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.828e-05/0.1101, allocations: 89 kB / 447.3 MB, free: 5.59 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.1101, allocations: 4 kB / 447.3 MB, free: 5.586 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.539e-05/0.1102, allocations: 4 kB / 447.3 MB, free: 5.582 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.1102, allocations: 7.984 kB / 447.3 MB, free: 5.574 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-06/0.1102, allocations: 0 / 447.3 MB, free: 5.574 MB / 282.8 MB Notification: Performance of sorting global known variables: time 4.559e-05/0.1103, allocations: 111.2 kB / 447.5 MB, free: 5.465 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.062e-06/0.1103, allocations: 0 / 447.5 MB, free: 5.465 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0001977/0.1105, allocations: 11.94 kB / 447.5 MB, free: 5.453 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0002925/0.1108, allocations: 0.714 MB / 448.2 MB, free: 4.707 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001234/0.1109, allocations: 35.92 kB / 448.2 MB, free: 4.672 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1109, allocations: 0 / 448.2 MB, free: 4.672 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 3.588e-05/0.111, allocations: 19.92 kB / 448.2 MB, free: 4.652 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.1113, allocations: 23.78 kB / 448.3 MB, free: 4.633 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007382/0.1121, allocations: 0.5387 MB / 448.8 MB, free: 4.031 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001429/0.1122, allocations: 0.6887 MB / 449.5 MB, free: 3.316 MB / 282.8 MB Notification: Performance of simCode: alias equations: time 3.489e-05/0.1123, allocations: 4.188 kB / 449.5 MB, free: 3.312 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.055e-05/0.1123, allocations: 23.42 kB / 449.5 MB, free: 3.289 MB / 282.8 MB Notification: Performance of SimCode: time 2.31e-07/0.1123, allocations: 0 / 449.5 MB, free: 3.289 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01294/0.1253, allocations: 1.467 MB / 451 MB, free: 1.836 MB / 282.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001518/0.1255, allocations: 211.3 kB / 451.2 MB, free: 1.594 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/1.713, allocations: 7.906 kB / 451.2 MB, free: 1.586 MB / 282.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat