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.001125/0.001125, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001256/0.001256, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2079/0.2079, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 71.89 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.311, allocations: 62.42 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001537/0.3126, allocations: 491.2 kB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007088/0.3133, allocations: 297.1 kB / 0.5312 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.223e-05/0.3134, allocations: 3.938 kB / 0.5312 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.232e-05/0.3134, allocations: 0 / 0.5312 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.721e-06/0.3134, 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.0008732/0.3143, allocations: 96.31 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.821e-05/0.3144, allocations: 9.266 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.72e-05/0.3144, allocations: 5.672 kB / 0.5313 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.693e-05/0.3144, allocations: 0 / 0.5313 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.999e-05/0.3145, allocations: 5.344 kB / 0.5313 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-06/0.3145, allocations: 0 / 0.5313 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002238/0.3147, allocations: 106.5 kB / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-06/0.3147, allocations: 0 / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.48e-05/0.3147, allocations: 4 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.3149, allocations: 82.41 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3149, allocations: 1.844 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.315, allocations: 4 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.315, 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.0003518/0.3153, allocations: 363.9 kB / 0.5319 GB, free: 12.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3154, allocations: 9.406 kB / 0.5319 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.251e-05/0.3154, allocations: 33 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.3154, allocations: 0.9375 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.596e-05/0.3155, allocations: 164.4 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.3156, allocations: 384 / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.3156, allocations: 2.625 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.904e-05/0.3157, allocations: 35.67 kB / 0.5321 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3157, allocations: 3.938 kB / 0.5321 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.3157, allocations: 0 / 0.5321 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.3157, allocations: 1.5 kB / 0.5321 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.803e-05/0.3157, allocations: 1.375 kB / 0.5321 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.3159, allocations: 151 kB / 0.5323 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.87e-05/0.3159, allocations: 19.91 kB / 0.5323 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.699e-05/0.3159, allocations: 10.14 kB / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.3159, allocations: 4 kB / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.316, allocations: 57.58 kB / 0.5324 GB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.312e-06/0.316, allocations: 3.938 kB / 0.5324 GB, free: 11.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001772/0.3162, allocations: 72.17 kB / 0.5324 GB, free: 11.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.3162, allocations: 77.11 kB / 0.5325 GB, free: 11.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.974e-05/0.3163, allocations: 89.86 kB / 0.5326 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.3163, allocations: 27.02 kB / 0.5326 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.551e-05/0.3163, allocations: 84.27 kB / 0.5327 GB, free: 11.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.3164, allocations: 1.188 kB / 0.5327 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.3164, allocations: 11.06 kB / 0.5327 GB, free: 11.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3165, allocations: 316.4 kB / 0.533 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.097e-05/0.3165, allocations: 0 / 0.533 GB, free: 10.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.562e-06/0.3165, allocations: 9.875 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.77e-05/0.3166, allocations: 63.12 kB / 0.5331 GB, free: 10.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.3166, allocations: 4.062 kB / 0.5331 GB, free: 10.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.972e-05/0.3167, allocations: 63.72 kB / 0.5331 GB, free: 10.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/0.3167, allocations: 29.77 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.3167, allocations: 6.812 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.3168, allocations: 0 / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.3168, allocations: 0 / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.3168, allocations: 3.984 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.846e-05/0.3168, allocations: 4 kB / 0.5332 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.3168, allocations: 3.25 kB / 0.5332 GB, free: 10.74 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 8.696e-05/0.3169, allocations: 135.6 kB / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.307e-06/0.3169, allocations: 6.812 kB / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.839e-06/0.3169, allocations: 7.062 kB / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3169, allocations: 0 / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3169, allocations: 0 / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.317, allocations: 0 / 0.5333 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.759e-05/0.3171, allocations: 151.2 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3171, allocations: 0 / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.3171, allocations: 0 / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.3171, allocations: 0 / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.3171, allocations: 3.938 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3171, allocations: 4 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3171, allocations: 0.75 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.612e-05/0.3172, allocations: 93.98 kB / 0.5336 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.3172, allocations: 77.11 kB / 0.5336 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.3173, allocations: 9.562 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.01e-05/0.3173, allocations: 0 / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.598e-06/0.3173, allocations: 1.656 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.3173, allocations: 8.031 kB / 0.5337 GB, free: 10.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.736e-05/0.3173, allocations: 76.94 kB / 0.5337 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3174, allocations: 3.938 kB / 0.5337 GB, free: 10.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.3176, allocations: 35.67 kB / 0.5338 GB, free: 10.08 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.0007477/0.3184, allocations: 0.7887 MB / 0.5345 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.771e-05/0.3185, allocations: 61.33 kB / 0.5346 GB, free: 9.309 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.3185, allocations: 4.062 kB / 0.5346 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.106e-05/0.3185, allocations: 58.47 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.0001219/0.3186, allocations: 9.141 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.0002906/0.3189, allocations: 119.4 kB / 0.5348 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002178/0.3192, allocations: 0.6742 MB / 0.5354 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.48e-06/0.3192, allocations: 0 / 0.5354 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.391e-05/0.3192, allocations: 8.594 kB / 0.5355 GB, free: 8.387 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3192, allocations: 3.938 kB / 0.5355 GB, free: 8.383 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01887/0.3381, allocations: 1.809 MB / 0.5372 GB, free: 7.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.718/8.056, allocations: 18.08 kB / 0.5372 GB, free: 7.316 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