Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",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.001266/0.001266, allocations: 95.47 kB / 16.3 MB, free: 5.996 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.00154/0.00154, allocations: 183.8 kB / 17.2 MB, free: 5.914 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.485/1.485, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002421/0.0002422, allocations: 4.062 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09583/0.09609, allocations: 50.43 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002286/0.09843, allocations: 1.248 MB / 352.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003864/0.09884, allocations: 135.6 kB / 352.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.702e-05/0.09895, allocations: 3.938 kB / 352.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.884e-05/0.099, allocations: 0 / 352.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.09917, allocations: 7.984 kB / 352.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002841/0.09947, allocations: 31.84 kB / 352.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.09957, allocations: 27.91 kB / 352.7 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.0997, allocations: 19.92 kB / 352.7 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.276e-05/0.09973, allocations: 8 kB / 352.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.95e-05/0.0998, allocations: 15.86 kB / 352.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.09982, allocations: 0 / 352.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.256e-05/0.09984, allocations: 0 / 352.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.877e-05/0.09988, allocations: 11.98 kB / 352.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.884e-05/0.09992, allocations: 33.64 kB / 352.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.557e-05/0.1, allocations: 27.94 kB / 352.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1, allocations: 0 / 352.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1, allocations: 0 / 352.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.1, allocations: 4 kB / 352.8 MB, free: 10.06 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004728/0.1005, allocations: 359.2 kB / 353.2 MB, free: 9.664 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.1006, allocations: 8.031 kB / 353.2 MB, free: 9.656 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.198e-05/0.1006, allocations: 34.56 kB / 353.2 MB, free: 9.613 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.51e-05/0.1006, allocations: 15.84 kB / 353.2 MB, free: 9.598 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.1009, allocations: 190.8 kB / 353.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.1009, allocations: 4 kB / 353.4 MB, free: 9.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.866e-06/0.1009, allocations: 0 / 353.4 MB, free: 9.367 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.1012, allocations: 125 kB / 353.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.1012, allocations: 0 / 353.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-06/0.1012, allocations: 0 / 353.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.1012, allocations: 3.953 kB / 353.5 MB, free: 9.223 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.703e-05/0.1013, allocations: 35.86 kB / 353.6 MB, free: 9.188 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003121/0.1016, allocations: 261.7 kB / 353.8 MB, free: 8.879 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.1019, allocations: 142.2 kB / 354 MB, free: 8.703 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.1019, allocations: 4.062 kB / 354 MB, free: 8.699 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.1019, allocations: 30.56 kB / 354 MB, free: 8.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.1019, allocations: 0 / 354 MB, free: 8.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003411/0.1023, allocations: 85.75 kB / 354.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/0.1023, allocations: 81.09 kB / 354.2 MB, free: 8.473 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/0.1025, allocations: 136.2 kB / 354.3 MB, free: 8.328 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.1025, allocations: 25.7 kB / 354.3 MB, free: 8.297 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.656e-05/0.1026, allocations: 88.14 kB / 354.4 MB, free: 8.207 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.264e-05/0.1026, allocations: 3.906 kB / 354.4 MB, free: 8.203 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-06/0.1026, allocations: 4 kB / 354.4 MB, free: 8.199 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1028, allocations: 318.9 kB / 354.7 MB, free: 7.879 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.947e-05/0.1028, allocations: 12 kB / 354.7 MB, free: 7.867 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.936e-05/0.1029, allocations: 39.36 kB / 354.8 MB, free: 7.816 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.229e-05/0.1029, allocations: 12 kB / 354.8 MB, free: 7.805 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1029, allocations: 0 / 354.8 MB, free: 7.805 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001255/0.1031, allocations: 73.61 kB / 354.9 MB, free: 7.727 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1031, allocations: 4 kB / 354.9 MB, free: 7.723 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1031, allocations: 0 / 354.9 MB, free: 7.723 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.1031, allocations: 7.953 kB / 354.9 MB, free: 7.715 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.822e-05/0.1032, allocations: 20.05 kB / 354.9 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.1032, allocations: 0 / 354.9 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.766e-05/0.1032, allocations: 7.906 kB / 354.9 MB, free: 7.688 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.1033, allocations: 3.938 kB / 354.9 MB, free: 7.684 MB / 286.1 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 0.0001077/0.1034, allocations: 117.8 kB / 355 MB, free: 7.559 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.815e-05/0.1034, allocations: 41.97 kB / 355.1 MB, free: 7.512 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.082e-05/0.1035, allocations: 12.25 kB / 355.1 MB, free: 7.492 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1035, allocations: 4 kB / 355.1 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.1035, allocations: 7.984 kB / 355.1 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.1035, allocations: 7.984 kB / 355.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.1037, allocations: 161.6 kB / 355.2 MB, free: 7.266 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1038, allocations: 0 / 355.2 MB, free: 7.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.005e-05/0.1038, allocations: 15.92 kB / 355.3 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1038, allocations: 4 kB / 355.3 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.1038, allocations: 4 kB / 355.3 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1038, allocations: 4 kB / 355.3 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1039, allocations: 3.953 kB / 355.3 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001944/0.1041, allocations: 178.1 kB / 355.4 MB, free: 7.035 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.682e-05/0.1041, allocations: 96.94 kB / 355.5 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.1042, allocations: 0 / 355.5 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.875e-05/0.1042, allocations: 11.89 kB / 355.6 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.347e-05/0.1043, allocations: 3.984 kB / 355.6 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.1043, allocations: 4 kB / 355.6 MB, free: 6.902 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.818e-05/0.1043, allocations: 105 kB / 355.7 MB, free: 6.801 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1044, allocations: 0 / 355.7 MB, free: 6.801 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002164/0.1046, allocations: 4 kB / 355.7 MB, free: 6.797 MB / 286.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 (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.0005213/0.1051, allocations: 0.7836 MB / 356.5 MB, free: 5.98 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001237/0.1052, allocations: 35.91 kB / 356.5 MB, free: 5.945 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1052, allocations: 0 / 356.5 MB, free: 5.945 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.115e-05/0.1053, allocations: 12.25 kB / 356.5 MB, free: 5.934 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.1056, allocations: 27.97 kB / 356.5 MB, free: 5.906 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009897/0.1066, allocations: 0.908 MB / 357.4 MB, free: 4.93 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.1069, allocations: 0.6926 MB / 358.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.631e-05/0.107, allocations: 3.984 kB / 358.1 MB, free: 4.207 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/0.107, allocations: 15.44 kB / 358.1 MB, free: 4.191 MB / 286.1 MB Notification: Performance of SimCode: time 2.114e-06/0.107, allocations: 0 / 358.1 MB, free: 4.191 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01092/0.1179, allocations: 1.216 MB / 359.4 MB, free: 3.105 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/0.1181, allocations: 195 kB / 359.6 MB, free: 2.859 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/1.828, allocations: 3.938 kB / 359.6 MB, free: 2.855 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat does not exist to compare? outputFormat=mat