Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008823/0.0008822, allocations: 97.72 kB / 17 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009148/0.0009147, allocations: 194.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2057/0.2057, allocations: 45.92 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002326/0.0002327, allocations: 8 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1161, allocations: 63.47 MB / 481.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.000554/0.1167, allocations: 210.9 kB / 481.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006593/0.1174, allocations: 278 kB / 482.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.506e-05/0.1174, allocations: 0 / 482.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.127e-05/0.1174, allocations: 0 / 482.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.783e-06/0.1174, allocations: 4 kB / 482.1 MB, free: 4.785 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:221:3-287:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Streams‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0004781/0.1179, allocations: 71.84 kB / 482.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.741e-05/0.1179, allocations: 3.938 kB / 482.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.461e-05/0.118, allocations: 0 / 482.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.576e-05/0.118, allocations: 4 kB / 482.2 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.108e-05/0.118, allocations: 0 / 482.2 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.791e-06/0.118, allocations: 0 / 482.2 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001841/0.1182, allocations: 99.91 kB / 482.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.881e-06/0.1183, allocations: 0 / 482.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.908e-05/0.1183, allocations: 25.7 kB / 482.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.1184, allocations: 55.89 kB / 482.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.1184, allocations: 8 kB / 482.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1184, allocations: 0 / 482.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.1185, allocations: 0 / 482.4 MB, free: 4.516 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002988/0.1188, allocations: 357.1 kB / 482.7 MB, free: 4.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.1188, allocations: 12.03 kB / 482.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.204e-05/0.1188, allocations: 30.56 kB / 482.8 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.121e-05/0.1189, allocations: 0 / 482.8 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.119, allocations: 171 kB / 482.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.119, allocations: 3.938 kB / 482.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-06/0.119, allocations: 4 kB / 482.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.1191, allocations: 33.7 kB / 483 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.1191, allocations: 0 / 483 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.1191, allocations: 0 / 483 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.1192, allocations: 0 / 483 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.986e-05/0.1192, allocations: 4 kB / 483 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.1193, allocations: 149.6 kB / 483.1 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.448e-05/0.1194, allocations: 18.52 kB / 483.1 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.677e-05/0.1194, allocations: 12.95 kB / 483.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.1194, allocations: 0 / 483.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.1195, allocations: 60.27 kB / 483.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.1195, allocations: 0 / 483.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.00016/0.1196, allocations: 63.39 kB / 483.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.1197, allocations: 77.11 kB / 483.3 MB, free: 3.324 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.008e-05/0.1197, allocations: 89.86 kB / 483.4 MB, free: 3.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.1198, allocations: 25.83 kB / 483.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.071e-05/0.1198, allocations: 92.08 kB / 483.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.1198, allocations: 0 / 483.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.1198, allocations: 0 / 483.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1199, allocations: 314.8 kB / 483.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.388e-06/0.12, allocations: 0 / 483.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.232e-06/0.12, allocations: 7.938 kB / 483.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.665e-05/0.12, allocations: 29.66 kB / 483.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.12, allocations: 0 / 483.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.623e-05/0.1201, allocations: 71.45 kB / 484 MB, free: 2.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.636e-05/0.1201, allocations: 32.05 kB / 484 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.1201, allocations: 0 / 484 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.1202, allocations: 0 / 484 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.1202, allocations: 0 / 484 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1202, allocations: 4 kB / 484 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.555e-05/0.1202, allocations: 0 / 484 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.1202, allocations: 0 / 484 MB, free: 2.621 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 8.65e-05/0.1203, allocations: 147.5 kB / 484.1 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.143e-06/0.1203, allocations: 7.969 kB / 484.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.307e-06/0.1203, allocations: 7.109 kB / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.1203, allocations: 0 / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1203, allocations: 0 / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1203, allocations: 0 / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.1205, allocations: 145.7 kB / 484.3 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1205, allocations: 7.938 kB / 484.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1205, allocations: 0 / 484.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1205, allocations: 3.938 kB / 484.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.1205, allocations: 0 / 484.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1205, allocations: 0 / 484.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1205, allocations: 4 kB / 484.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.93e-05/0.1206, allocations: 90.83 kB / 484.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.1207, allocations: 85.25 kB / 484.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.1207, allocations: 0 / 484.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.162e-05/0.1207, allocations: 4 kB / 484.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.316e-05/0.1207, allocations: 0 / 484.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.1207, allocations: 0 / 484.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.888e-05/0.1207, allocations: 79.31 kB / 484.6 MB, free: 1.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1208, allocations: 3.938 kB / 484.6 MB, free: 1.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.1211, allocations: 39.98 kB / 484.6 MB, free: 1.902 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008022/0.1219, allocations: 0.8089 MB / 485.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.588e-05/0.122, allocations: 55.41 kB / 485.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.122, allocations: 0 / 485.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.409e-05/0.122, allocations: 67.39 kB / 485.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001175/0.1221, allocations: 4 kB / 485.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000288/0.1224, allocations: 116.4 kB / 485.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.1228, allocations: 0.6731 MB / 486.3 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.701e-06/0.1228, allocations: 0 / 486.3 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.225e-05/0.1228, allocations: 7.438 kB / 486.3 MB, free: 100 kB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1228, allocations: 0 / 486.3 MB, free: 100 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01322/0.136, allocations: 1.546 MB / 487.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002332/0.1363, allocations: 217.3 kB / 488.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/1.925, allocations: 0 / 488.1 MB, free: 14.41 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat does not exist to compare? outputFormat=mat