Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 87.11 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001265, allocations: 180.9 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 223.3 MB / 241.2 MB, free: 276 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.0002619, allocations: 8.531 kB / 300.9 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.09975, allocations: 50.41 MB / 351.3 MB, free: 3.895 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.001535/0.1013, allocations: 1.253 MB / 352.6 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006316/0.102, allocations: 455.1 kB / 353 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.027e-05/0.1021, allocations: 0 / 353 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.102e-05/0.1021, allocations: 0 / 353 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.1023, allocations: 15.92 kB / 353.1 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.1025, allocations: 31.91 kB / 353.1 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.091e-05/0.1026, allocations: 35.84 kB / 353.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.448e-05/0.1027, allocations: 11.98 kB / 353.1 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.867e-05/0.1028, allocations: 11.94 kB / 353.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.699e-05/0.1028, allocations: 19.92 kB / 353.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.1028, allocations: 4 kB / 353.2 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.185e-05/0.1029, allocations: 0 / 353.2 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.183e-05/0.1029, allocations: 7.938 kB / 353.2 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.691e-05/0.1029, allocations: 41.62 kB / 353.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.656e-05/0.103, allocations: 31.94 kB / 353.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.103, allocations: 0 / 353.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.103, allocations: 0 / 353.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.103, allocations: 0 / 353.2 MB, free: 1.965 MB / 286.1 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.0003914/0.1034, allocations: 363.3 kB / 353.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1035, allocations: 8.031 kB / 353.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.992e-05/0.1035, allocations: 30.56 kB / 353.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.531e-05/0.1035, allocations: 11.86 kB / 353.7 MB, free: 1.504 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.1037, allocations: 189.4 kB / 353.8 MB, free: 1.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.1037, allocations: 11.92 kB / 353.8 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.1037, allocations: 0 / 353.8 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.104, allocations: 97.05 kB / 353.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.151e-06/0.104, allocations: 0 / 353.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.104, allocations: 0 / 353.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.104, allocations: 3.953 kB / 353.9 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.684e-05/0.1041, allocations: 27.92 kB / 354 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002644/0.1044, allocations: 265.8 kB / 354.2 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.425e-05/0.1044, allocations: 41.16 kB / 354.3 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.95e-05/0.1045, allocations: 25.77 kB / 354.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.1045, allocations: 4 kB / 354.3 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.1045, allocations: 30.56 kB / 354.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.694e-06/0.1046, allocations: 3.938 kB / 354.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002376/0.1048, allocations: 81.47 kB / 354.4 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.1049, allocations: 81.36 kB / 354.5 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.972e-05/0.105, allocations: 134 kB / 354.6 MB, free: 360 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.105, allocations: 25.7 kB / 354.7 MB, free: 328 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.71e-05/0.105, allocations: 96.06 kB / 354.7 MB, free: 228 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.117e-05/0.105, allocations: 0 / 354.7 MB, free: 228 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-06/0.1051, allocations: 0 / 354.7 MB, free: 228 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1052, allocations: 310.8 kB / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.239e-05/0.1052, allocations: 19.98 kB / 355.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.657e-05/0.1053, allocations: 17.72 kB / 355.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.129e-05/0.1053, allocations: 15.98 kB / 355.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1053, allocations: 0 / 355.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000116/0.1054, allocations: 65.59 kB / 355.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.1055, allocations: 4 kB / 355.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1055, allocations: 4 kB / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.1055, allocations: 3.953 kB / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.755e-05/0.1056, allocations: 7.984 kB / 355.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.1056, allocations: 0 / 355.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.664e-05/0.1056, allocations: 7.938 kB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.1056, allocations: 0 / 355.2 MB, free: 15.75 MB / 302.1 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 7.445e-05/0.1057, allocations: 125.9 kB / 355.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.528e-05/0.1058, allocations: 33.61 kB / 355.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.1058, allocations: 11.88 kB / 355.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1058, allocations: 7.891 kB / 355.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1058, allocations: 0 / 355.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1058, allocations: 11.94 kB / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.106, allocations: 161.7 kB / 355.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.106, allocations: 0 / 355.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.424e-05/0.106, allocations: 7.984 kB / 355.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1061, allocations: 8.031 kB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.1061, allocations: 0 / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1061, allocations: 0 / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1061, allocations: 3.953 kB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001495/0.1062, allocations: 168.3 kB / 355.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.468e-05/0.1063, allocations: 89.09 kB / 355.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.1063, allocations: 0 / 355.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.302e-05/0.1064, allocations: 4 kB / 355.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.781e-05/0.1064, allocations: 0 / 355.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1064, allocations: 7.891 kB / 355.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.175e-05/0.1065, allocations: 113.5 kB / 355.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1065, allocations: 0 / 355.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002096/0.1067, allocations: 7.938 kB / 355.9 MB, free: 14.9 MB / 302.1 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.0003791/0.1071, allocations: 0.6899 MB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.1072, allocations: 31.95 kB / 356.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1072, allocations: 4 kB / 356.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.504e-05/0.1073, allocations: 4 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.1076, allocations: 16.02 kB / 356.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006912/0.1083, allocations: 484.4 kB / 357.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.1085, allocations: 0.6965 MB / 357.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.76e-05/0.1086, allocations: 4.25 kB / 357.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.738e-05/0.1086, allocations: 11.44 kB / 357.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1086, allocations: 0 / 357.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01069/0.1193, allocations: 1.229 MB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000228/0.1196, allocations: 207.7 kB / 359.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/1.95, allocations: 3.938 kB / 359.3 MB, free: 11.54 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat