Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",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.001578/0.001582, allocations: 187.1 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.36/2.36, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001586/0.001586, allocations: 86.88 kB / 270.3 MB, free: 13.35 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.1025/0.1025, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005642/0.0005644, allocations: 14.44 kB / 392.1 MB, free: 54.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.0995, allocations: 50.37 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.002019/0.1016, allocations: 1.244 MB / 443.7 MB, free: 9.555 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.1027, allocations: 485 kB / 444.2 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.1029, allocations: 4 kB / 444.2 MB, free: 9.07 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.168e-05/0.1029, allocations: 3.938 kB / 444.2 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.1031, allocations: 3.984 kB / 444.2 MB, free: 9.062 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003343/0.1034, allocations: 39.84 kB / 444.2 MB, free: 9.023 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.722e-05/0.1035, allocations: 23.97 kB / 444.3 MB, free: 9 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.1037, allocations: 15.98 kB / 444.3 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.345e-05/0.1037, allocations: 11.92 kB / 444.3 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.555e-05/0.1038, allocations: 23.86 kB / 444.3 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.1039, allocations: 0 / 444.3 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.529e-05/0.1039, allocations: 0 / 444.3 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.555e-05/0.1039, allocations: 7.984 kB / 444.3 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.198e-05/0.104, allocations: 37.64 kB / 444.4 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.048e-05/0.1041, allocations: 31.94 kB / 444.4 MB, free: 8.867 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.1041, allocations: 0 / 444.4 MB, free: 8.867 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1041, allocations: 0 / 444.4 MB, free: 8.867 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1041, allocations: 4 kB / 444.4 MB, free: 8.863 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000506/0.1046, allocations: 367.8 kB / 444.8 MB, free: 8.457 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.1047, allocations: 8.031 kB / 444.8 MB, free: 8.449 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.52e-05/0.1047, allocations: 30.56 kB / 444.8 MB, free: 8.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.1048, allocations: 7.906 kB / 444.8 MB, free: 8.402 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.105, allocations: 190.8 kB / 445 MB, free: 8.176 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.105, allocations: 4 kB / 445 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.105, allocations: 0 / 445 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.1053, allocations: 105 kB / 445.1 MB, free: 8.051 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1054, allocations: 0 / 445.1 MB, free: 8.051 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.1054, allocations: 0 / 445.1 MB, free: 8.051 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.1054, allocations: 0 / 445.1 MB, free: 8.051 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001274/0.1056, allocations: 27.98 kB / 445.1 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003381/0.1059, allocations: 253.8 kB / 445.4 MB, free: 7.723 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.106, allocations: 49.14 kB / 445.4 MB, free: 7.656 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.1061, allocations: 4 kB / 445.4 MB, free: 7.652 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.1061, allocations: 30.56 kB / 445.5 MB, free: 7.613 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 2.054e-06/0.1061, allocations: 0 / 445.5 MB, free: 7.613 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003503/0.1065, allocations: 77.58 kB / 445.5 MB, free: 7.531 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.1065, allocations: 81.36 kB / 445.6 MB, free: 7.434 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.1067, allocations: 144.9 kB / 445.8 MB, free: 7.285 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.1067, allocations: 25.7 kB / 445.8 MB, free: 7.254 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.1068, allocations: 88.14 kB / 445.9 MB, free: 7.164 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.1068, allocations: 3.938 kB / 445.9 MB, free: 7.16 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.1068, allocations: 0 / 445.9 MB, free: 7.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.586e-05/0.1069, allocations: 322.8 kB / 446.2 MB, free: 6.836 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.358e-05/0.107, allocations: 7.984 kB / 446.2 MB, free: 6.828 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.661e-05/0.107, allocations: 25.72 kB / 446.2 MB, free: 6.797 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.109e-05/0.1071, allocations: 11.98 kB / 446.2 MB, free: 6.785 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.1071, allocations: 3.938 kB / 446.2 MB, free: 6.781 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001826/0.1073, allocations: 65.59 kB / 446.3 MB, free: 6.711 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1074, allocations: 4 kB / 446.3 MB, free: 6.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.1074, allocations: 4 kB / 446.3 MB, free: 6.703 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.1074, allocations: 4 kB / 446.3 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.1075, allocations: 7.984 kB / 446.3 MB, free: 6.691 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1076, allocations: 0 / 446.3 MB, free: 6.691 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.938e-05/0.1076, allocations: 4 kB / 446.3 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.1076, allocations: 0 / 446.3 MB, free: 6.688 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 9.149e-05/0.1077, allocations: 133.6 kB / 446.4 MB, free: 6.547 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.888e-05/0.1078, allocations: 33.61 kB / 446.5 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.786e-05/0.1079, allocations: 19.77 kB / 446.5 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1079, allocations: 0 / 446.5 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1079, allocations: 3.984 kB / 446.5 MB, free: 6.484 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.1079, allocations: 4 kB / 446.5 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001794/0.1081, allocations: 165.6 kB / 446.7 MB, free: 6.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1081, allocations: 3.984 kB / 446.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.006e-05/0.1082, allocations: 4 kB / 446.7 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.1082, allocations: 11.97 kB / 446.7 MB, free: 6.25 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.679e-06/0.1082, allocations: 0 / 446.7 MB, free: 6.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1082, allocations: 0 / 446.7 MB, free: 6.25 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1083, allocations: 0 / 446.7 MB, free: 6.25 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000221/0.1085, allocations: 182 kB / 446.9 MB, free: 6.047 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.511e-05/0.1086, allocations: 85.09 kB / 447 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.1086, allocations: 0 / 447 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.1087, allocations: 4 kB / 447 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/0.1088, allocations: 3.938 kB / 447 MB, free: 5.938 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-06/0.1088, allocations: 0 / 447 MB, free: 5.938 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.45e-05/0.1089, allocations: 111.2 kB / 447.1 MB, free: 5.828 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1089, allocations: 0 / 447.1 MB, free: 5.828 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003086/0.1092, allocations: 12 kB / 447.1 MB, free: 5.816 MB / 282.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005/0.1097, allocations: 0.7682 MB / 447.8 MB, free: 5.016 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001943/0.1099, allocations: 35.95 kB / 447.9 MB, free: 4.98 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1099, allocations: 0 / 447.9 MB, free: 4.98 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.818e-05/0.11, allocations: 8 kB / 447.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.1104, allocations: 23.7 kB / 447.9 MB, free: 4.953 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.1115, allocations: 0.6256 MB / 448.5 MB, free: 4.273 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001731/0.1117, allocations: 0.6887 MB / 449.2 MB, free: 3.559 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.647e-05/0.1117, allocations: 0 / 449.2 MB, free: 3.559 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.837e-05/0.1118, allocations: 19.42 kB / 449.2 MB, free: 3.539 MB / 282.7 MB Notification: Performance of SimCode: time 1.273e-06/0.1118, allocations: 0 / 449.2 MB, free: 3.539 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.1381, allocations: 1.229 MB / 450.5 MB, free: 2.32 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003072/0.1385, allocations: 219.2 kB / 450.7 MB, free: 2.066 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.378/2.516, allocations: 4 kB / 450.7 MB, free: 2.062 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat