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.001486/0.001487, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001756/0.001756, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.209/0.209, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 75.88 kB / 480.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2913, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001431/0.2928, allocations: 488.8 kB / 0.5309 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007428/0.2936, allocations: 300.1 kB / 0.5312 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.948e-05/0.2936, allocations: 0 / 0.5312 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.631e-05/0.2937, allocations: 4 kB / 0.5312 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.4e-06/0.2937, allocations: 0 / 0.5312 GB, free: 12.83 MB / 398.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.0007938/0.2945, allocations: 98.12 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.148e-05/0.2945, allocations: 1.219 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.465e-05/0.2946, allocations: 1.344 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.365e-05/0.2946, allocations: 0 / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.778e-05/0.2946, allocations: 1.281 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.041e-06/0.2946, allocations: 3.938 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002023/0.2948, allocations: 113.6 kB / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.652e-06/0.2948, allocations: 0 / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.844e-05/0.2949, allocations: 5.016 kB / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.295, allocations: 87.12 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.295, allocations: 0 / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2951, allocations: 1.469 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.2951, allocations: 0 / 0.5315 GB, free: 12.65 MB / 398.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.0003476/0.2954, allocations: 363.5 kB / 0.5319 GB, free: 12.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.2955, allocations: 10.34 kB / 0.5319 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.115e-05/0.2955, allocations: 30.75 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.909e-05/0.2955, allocations: 6.703 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.044e-05/0.2956, allocations: 160.4 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.2957, allocations: 4.375 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.2957, allocations: 1.969 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.878e-05/0.2958, allocations: 32.34 kB / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.2958, allocations: 3.938 kB / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.2958, allocations: 0 / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2958, allocations: 1.031 kB / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.92e-05/0.2958, allocations: 5.969 kB / 0.5321 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000124/0.2959, allocations: 145.6 kB / 0.5323 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.354e-05/0.296, allocations: 20.55 kB / 0.5323 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.847e-05/0.296, allocations: 10.88 kB / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.954e-06/0.296, allocations: 0 / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.687e-05/0.2961, allocations: 62.14 kB / 0.5324 GB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.2961, allocations: 3.938 kB / 0.5324 GB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001692/0.2963, allocations: 70.88 kB / 0.5324 GB, free: 11.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.2963, allocations: 83 kB / 0.5325 GB, free: 11.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.723e-05/0.2964, allocations: 93.98 kB / 0.5326 GB, free: 11.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.2964, allocations: 25.7 kB / 0.5326 GB, free: 11.35 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.999e-05/0.2964, allocations: 80.14 kB / 0.5327 GB, free: 11.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.2964, allocations: 0 / 0.5327 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.709e-05/0.2965, allocations: 17.66 kB / 0.5327 GB, free: 11.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.666e-05/0.2966, allocations: 310.8 kB / 0.533 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.738e-06/0.2966, allocations: 0 / 0.533 GB, free: 10.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.061e-06/0.2966, allocations: 1.969 kB / 0.533 GB, free: 10.94 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.617e-05/0.2967, allocations: 64.08 kB / 0.5331 GB, free: 10.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2967, allocations: 0 / 0.5331 GB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.96e-05/0.2967, allocations: 69.2 kB / 0.5331 GB, free: 10.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.2968, allocations: 32.33 kB / 0.5332 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.2968, allocations: 3.938 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.2968, allocations: 0 / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.2968, allocations: 5.719 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.2968, allocations: 0 / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.551e-05/0.2968, allocations: 0 / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.2969, allocations: 1.156 kB / 0.5332 GB, free: 10.75 MB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.635e-05/0.2969, allocations: 141.8 kB / 0.5333 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.536e-06/0.297, allocations: 1.188 kB / 0.5333 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.006e-05/0.297, allocations: 7.062 kB / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.297, allocations: 0 / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.297, allocations: 1.531 kB / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.297, allocations: 0 / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.8e-05/0.2971, allocations: 149.3 kB / 0.5335 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2971, allocations: 0 / 0.5335 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.623e-06/0.2971, allocations: 1.031 kB / 0.5335 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.2971, allocations: 4 kB / 0.5335 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.2971, allocations: 5.188 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2971, allocations: 0 / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2971, allocations: 1.594 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.343e-05/0.2972, allocations: 97.42 kB / 0.5336 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.622e-05/0.2973, allocations: 81.11 kB / 0.5336 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.412e-05/0.2973, allocations: 9.406 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.076e-05/0.2973, allocations: 4.031 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.2973, allocations: 1.438 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.2973, allocations: 0 / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.35e-05/0.2974, allocations: 76.81 kB / 0.5337 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2974, allocations: 0 / 0.5337 GB, free: 10.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.2976, allocations: 35.61 kB / 0.5338 GB, free: 10.09 MB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007992/0.2984, allocations: 0.7933 MB / 0.5345 GB, free: 9.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.856e-05/0.2986, allocations: 67.08 kB / 0.5346 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2986, allocations: 1.812 kB / 0.5346 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.382e-05/0.2986, allocations: 57.06 kB / 0.5347 GB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.2988, allocations: 7.75 kB / 0.5347 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002846/0.299, allocations: 118.9 kB / 0.5348 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001903/0.2992, allocations: 0.6728 MB / 0.5354 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.701e-06/0.2993, allocations: 1.812 kB / 0.5354 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.28e-05/0.2993, allocations: 7.438 kB / 0.5355 GB, free: 8.387 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2993, allocations: 4.125 kB / 0.5355 GB, free: 8.383 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.3185, allocations: 1.814 MB / 0.5372 GB, free: 7.328 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.78/8.099, allocations: 10.08 kB / 0.5372 GB, free: 7.32 MB / 398.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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches