Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",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.0009696/0.0009696, allocations: 174.5 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.611/1.611, allocations: 205.4 MB / 222 MB, free: 13.82 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.0008036/0.0008036, allocations: 90.23 kB / 270.3 MB, free: 13.36 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.06784/0.06784, allocations: 12.6 MB / 331.2 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004553/0.0004553, allocations: 13.53 kB / 392.1 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1027, allocations: 50.39 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001588/0.1043, allocations: 1.24 MB / 443.7 MB, free: 9.57 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003269/0.1046, allocations: 143.6 kB / 443.9 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.588e-05/0.1047, allocations: 0 / 443.9 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.95e-05/0.1048, allocations: 0 / 443.9 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.1049, allocations: 11.88 kB / 443.9 MB, free: 9.418 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002313/0.1052, allocations: 31.91 kB / 443.9 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.389e-05/0.1053, allocations: 27.92 kB / 444 MB, free: 9.359 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.63e-05/0.1054, allocations: 19.97 kB / 444 MB, free: 9.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.005e-05/0.1054, allocations: 11.94 kB / 444 MB, free: 9.328 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.957e-05/0.1054, allocations: 11.92 kB / 444 MB, free: 9.316 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.1055, allocations: 0 / 444 MB, free: 9.316 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.599e-05/0.1055, allocations: 4 kB / 444 MB, free: 9.312 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.365e-05/0.1055, allocations: 11.94 kB / 444 MB, free: 9.301 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.875e-05/0.1056, allocations: 33.69 kB / 444 MB, free: 9.262 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 5.973e-05/0.1056, allocations: 31.88 kB / 444.1 MB, free: 9.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1056, allocations: 0 / 444.1 MB, free: 9.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1056, allocations: 0 / 444.1 MB, free: 9.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.1056, allocations: 4 kB / 444.1 MB, free: 9.227 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003718/0.106, allocations: 363.9 kB / 444.4 MB, free: 8.824 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1061, allocations: 8.031 kB / 444.4 MB, free: 8.816 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.287e-05/0.1061, allocations: 34.56 kB / 444.5 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.638e-05/0.1061, allocations: 7.906 kB / 444.5 MB, free: 8.766 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.1063, allocations: 182.9 kB / 444.7 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.1063, allocations: 3.953 kB / 444.7 MB, free: 8.543 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.1063, allocations: 4 kB / 444.7 MB, free: 8.539 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002661/0.1066, allocations: 120.9 kB / 444.8 MB, free: 8.402 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.1066, allocations: 4 kB / 444.8 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.1066, allocations: 4 kB / 444.8 MB, free: 8.395 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1067, allocations: 0 / 444.8 MB, free: 8.395 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.499e-05/0.1067, allocations: 27.97 kB / 444.8 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002575/0.107, allocations: 257.7 kB / 445.1 MB, free: 8.062 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.1072, allocations: 138.3 kB / 445.2 MB, free: 7.891 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.767e-05/0.1073, allocations: 33.77 kB / 445.2 MB, free: 7.852 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.1073, allocations: 0 / 445.2 MB, free: 7.852 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.467e-05/0.1073, allocations: 42.48 kB / 445.3 MB, free: 7.801 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.1073, allocations: 0 / 445.3 MB, free: 7.801 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002376/0.1076, allocations: 85.52 kB / 445.4 MB, free: 7.711 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.1076, allocations: 77.3 kB / 445.4 MB, free: 7.617 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.614e-05/0.1077, allocations: 134 kB / 445.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.814e-06/0.1077, allocations: 29.7 kB / 445.6 MB, free: 7.438 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/0.1078, allocations: 92.02 kB / 445.7 MB, free: 7.344 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.069e-05/0.1078, allocations: 0 / 445.7 MB, free: 7.344 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-06/0.1078, allocations: 4 kB / 445.7 MB, free: 7.34 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.504e-05/0.1078, allocations: 326.9 kB / 446 MB, free: 7.012 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.702e-05/0.1079, allocations: 4 kB / 446 MB, free: 7.008 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.188e-05/0.1079, allocations: 43.41 kB / 446.1 MB, free: 6.953 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.381e-05/0.108, allocations: 19.98 kB / 446.1 MB, free: 6.934 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.108, allocations: 3.938 kB / 446.1 MB, free: 6.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001043/0.1081, allocations: 65.53 kB / 446.2 MB, free: 6.859 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.1081, allocations: 8 kB / 446.2 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1081, allocations: 0 / 446.2 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.1082, allocations: 0 / 446.2 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.33e-05/0.1082, allocations: 16.11 kB / 446.2 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1082, allocations: 4 kB / 446.2 MB, free: 6.832 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.22e-05/0.1083, allocations: 4 kB / 446.2 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.1083, allocations: 3.938 kB / 446.2 MB, free: 6.824 MB / 282.7 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.033e-05/0.1083, allocations: 129.5 kB / 446.3 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.39e-05/0.1084, allocations: 45.61 kB / 446.4 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.98e-05/0.1084, allocations: 16.23 kB / 446.4 MB, free: 6.617 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1084, allocations: 0 / 446.4 MB, free: 6.617 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1085, allocations: 4 kB / 446.4 MB, free: 6.613 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1085, allocations: 4 kB / 446.4 MB, free: 6.609 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.1086, allocations: 169.6 kB / 446.5 MB, free: 6.395 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1086, allocations: 4 kB / 446.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.411e-05/0.1086, allocations: 8 kB / 446.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1086, allocations: 0 / 446.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1087, allocations: 4 kB / 446.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.1087, allocations: 3.984 kB / 446.6 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1087, allocations: 0 / 446.6 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001295/0.1088, allocations: 172.2 kB / 446.7 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.817e-05/0.1089, allocations: 93.05 kB / 446.8 MB, free: 6.078 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.1089, allocations: 4 kB / 446.8 MB, free: 6.074 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.121e-05/0.1089, allocations: 7.984 kB / 446.8 MB, free: 6.066 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.218e-05/0.109, allocations: 0 / 446.8 MB, free: 6.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.109, allocations: 4 kB / 446.8 MB, free: 6.062 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.38e-05/0.109, allocations: 103.3 kB / 446.9 MB, free: 5.961 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.109, allocations: 0 / 446.9 MB, free: 5.961 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001952/0.1092, allocations: 4 kB / 446.9 MB, free: 5.957 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 (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.0003001/0.1095, allocations: 0.7053 MB / 447.7 MB, free: 5.223 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001242/0.1097, allocations: 35.91 kB / 447.7 MB, free: 5.188 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1097, allocations: 3.938 kB / 447.7 MB, free: 5.184 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.152e-05/0.1097, allocations: 8 kB / 447.7 MB, free: 5.176 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.1101, allocations: 28.08 kB / 447.7 MB, free: 5.152 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006074/0.1107, allocations: 489.9 kB / 448.2 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.1108, allocations: 0.6888 MB / 448.9 MB, free: 3.891 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.521e-05/0.1108, allocations: 7.984 kB / 448.9 MB, free: 3.883 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.011e-05/0.1109, allocations: 15.44 kB / 448.9 MB, free: 3.867 MB / 282.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1109, allocations: 0 / 448.9 MB, free: 3.867 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01132/0.1222, allocations: 1.264 MB / 450.2 MB, free: 2.617 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001224/0.1224, allocations: 202.5 kB / 450.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.59/1.712, allocations: 4 kB / 450.4 MB, free: 2.375 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat does not exist to compare? outputFormat=mat