Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects",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.0009851/0.000985, allocations: 172.4 kB / 16.14 MB, free: 5.656 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.514/1.514, allocations: 205.4 MB / 222.3 MB, free: 9.004 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.0008125/0.0008125, allocations: 90.36 kB / 270.7 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07633/0.07633, allocations: 12.6 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003686/0.0003686, allocations: 12.33 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.0991, allocations: 50.37 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001951/0.1011, allocations: 1.55 MB / 444.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1024, allocations: 0.6943 MB / 445.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.1026, allocations: 11.94 kB / 445.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.1028, allocations: 11.86 kB / 445.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.1029, allocations: 23.86 kB / 445.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.1034, allocations: 135.8 kB / 445.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.1036, allocations: 143.5 kB / 445.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.1038, allocations: 53.55 kB / 445.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.418e-05/0.1039, allocations: 51.77 kB / 445.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.104, allocations: 51.59 kB / 445.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.388e-05/0.104, allocations: 4 kB / 445.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.869e-05/0.1041, allocations: 39.95 kB / 445.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.806e-05/0.1042, allocations: 31.91 kB / 445.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.842e-05/0.1043, allocations: 85.23 kB / 446 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001724/0.1045, allocations: 175.6 kB / 446.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1045, allocations: 0 / 446.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1045, allocations: 0 / 446.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.1045, allocations: 0 / 446.2 MB, free: 12.24 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005694/0.1051, allocations: 458.9 kB / 446.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.1051, allocations: 8.031 kB / 446.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.1052, allocations: 38.75 kB / 446.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.945e-05/0.1052, allocations: 20.73 kB / 446.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.1054, allocations: 248 kB / 446.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.1055, allocations: 4.562 kB / 446.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.1055, allocations: 15.94 kB / 447 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005696/0.1061, allocations: 350.8 kB / 447.3 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1061, allocations: 0 / 447.3 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.1061, allocations: 4 kB / 447.3 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1061, allocations: 0 / 447.3 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002135/0.1063, allocations: 99.94 kB / 447.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002881/0.1066, allocations: 345.4 kB / 447.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004201/0.1071, allocations: 290.4 kB / 448 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.1072, allocations: 105.7 kB / 448.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004949/0.1077, allocations: 0.5817 MB / 448.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.716e-05/0.1078, allocations: 34.56 kB / 448.7 MB, free: 9.328 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.272e-06/0.1078, allocations: 0 / 448.7 MB, free: 9.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005188/0.1083, allocations: 261.2 kB / 449 MB, free: 9.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/0.1084, allocations: 118.9 kB / 449.1 MB, free: 8.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.1085, allocations: 194.2 kB / 449.3 MB, free: 8.727 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1085, allocations: 25.7 kB / 449.3 MB, free: 8.695 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.504e-05/0.1086, allocations: 104.6 kB / 449.4 MB, free: 8.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.1086, allocations: 19.83 kB / 449.5 MB, free: 8.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-06/0.1086, allocations: 4 kB / 449.5 MB, free: 8.566 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.873e-05/0.1087, allocations: 326.8 kB / 449.8 MB, free: 8.238 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.13e-05/0.1088, allocations: 47.91 kB / 449.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.1089, allocations: 177 kB / 450 MB, free: 7.957 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001702/0.1091, allocations: 200.1 kB / 450.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1091, allocations: 0 / 450.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002669/0.1094, allocations: 225.5 kB / 450.4 MB, free: 7.477 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.1094, allocations: 8.062 kB / 450.4 MB, free: 7.469 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1094, allocations: 8 kB / 450.4 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1094, allocations: 7.938 kB / 450.4 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.1096, allocations: 47.91 kB / 450.5 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.1096, allocations: 4 kB / 450.5 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.971e-05/0.1097, allocations: 19.84 kB / 450.5 MB, free: 7.383 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.1097, allocations: 12 kB / 450.5 MB, free: 7.371 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[3],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[1],$CLKPRE.sample.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[3],sample.noise.seedState[2],sample.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.1098, allocations: 153.5 kB / 450.7 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002524/0.1101, allocations: 177.3 kB / 450.8 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003124/0.1104, allocations: 189.8 kB / 451 MB, free: 6.844 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1104, allocations: 11.97 kB / 451 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1104, allocations: 0 / 451 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1104, allocations: 0 / 451 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.1106, allocations: 229.4 kB / 451.3 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.1106, allocations: 3.938 kB / 451.3 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.1107, allocations: 35.98 kB / 451.3 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1107, allocations: 0 / 451.3 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.1108, allocations: 7.984 kB / 451.3 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1108, allocations: 7.938 kB / 451.3 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1108, allocations: 0 / 451.3 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003604/0.1111, allocations: 300.1 kB / 451.6 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.541e-05/0.1112, allocations: 116.8 kB / 451.7 MB, free: 6.059 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.1113, allocations: 4 kB / 451.7 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.1114, allocations: 19.98 kB / 451.7 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.119e-05/0.1114, allocations: 0 / 451.7 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.1114, allocations: 4 kB / 451.8 MB, free: 6.031 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.315e-05/0.1115, allocations: 144.4 kB / 451.9 MB, free: 5.891 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1115, allocations: 4 kB / 451.9 MB, free: 5.887 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002681/0.1118, allocations: 31.94 kB / 451.9 MB, free: 5.855 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007612/0.1126, allocations: 0.9316 MB / 452.9 MB, free: 4.895 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002853/0.1129, allocations: 151.7 kB / 453 MB, free: 4.746 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1129, allocations: 0 / 453 MB, free: 4.746 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.796e-05/0.1129, allocations: 17.11 kB / 453 MB, free: 4.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005458/0.1135, allocations: 150.7 kB / 453.2 MB, free: 4.578 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.1148, allocations: 1.091 MB / 454.3 MB, free: 3.375 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/0.1149, allocations: 0.7363 MB / 455 MB, free: 2.609 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.371e-05/0.115, allocations: 9.562 kB / 455 MB, free: 2.602 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.036e-05/0.1151, allocations: 47.41 kB / 455.1 MB, free: 2.555 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1151, allocations: 4 kB / 455.1 MB, free: 2.551 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01356/0.1286, allocations: 3.805 MB / 458.9 MB, free: 14.73 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.1288, allocations: 229.1 kB / 459.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/1.911, allocations: 4 kB / 459.1 MB, free: 14.48 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat does not exist to compare? outputFormat=mat