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: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001065/0.001065, allocations: 114.5 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001151/0.001151, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2101/0.2101, allocations: 46.1 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001386, allocations: 71.88 kB / 482 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2927, allocations: 62.44 MB / 0.5316 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001596/0.2943, allocations: 484.6 kB / 0.5321 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007065/0.295, allocations: 299 kB / 0.5324 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.891e-05/0.2951, allocations: 0 / 0.5324 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.251e-05/0.2951, allocations: 3.938 kB / 0.5324 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-06/0.2951, allocations: 0 / 0.5324 GB, free: 13.01 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.0008516/0.296, allocations: 92.61 kB / 0.5325 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.465e-05/0.2961, allocations: 5.531 kB / 0.5325 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.718e-05/0.2961, allocations: 1.344 kB / 0.5325 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.516e-05/0.2961, allocations: 1.562 kB / 0.5325 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.202e-05/0.2961, allocations: 0 / 0.5325 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-06/0.2962, allocations: 7.938 kB / 0.5325 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.2964, allocations: 105.9 kB / 0.5326 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.883e-06/0.2964, allocations: 0 / 0.5326 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.051e-05/0.2964, allocations: 5.531 kB / 0.5326 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000174/0.2966, allocations: 87.33 kB / 0.5327 GB, free: 12.83 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2966, allocations: 0 / 0.5327 GB, free: 12.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2966, allocations: 0 / 0.5327 GB, free: 12.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.2966, allocations: 0 / 0.5327 GB, free: 12.83 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.0003254/0.2969, allocations: 365.6 kB / 0.533 GB, free: 12.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.297, allocations: 7.406 kB / 0.533 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.297, allocations: 6.719 kB / 0.533 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.63e-05/0.2971, allocations: 160.4 kB / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.2971, allocations: 384 / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.2971, allocations: 2.156 kB / 0.5332 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.571e-05/0.2972, allocations: 32.11 kB / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.2972, allocations: 192 / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.2973, allocations: 5.688 kB / 0.5332 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.2973, allocations: 0 / 0.5332 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.668e-05/0.2973, allocations: 1.75 kB / 0.5332 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001163/0.2974, allocations: 153.7 kB / 0.5334 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.085e-05/0.2975, allocations: 16.42 kB / 0.5334 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.317e-05/0.2975, allocations: 6.641 kB / 0.5334 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-06/0.2975, allocations: 0 / 0.5334 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.2975, allocations: 62.02 kB / 0.5335 GB, free: 11.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.094e-06/0.2975, allocations: 3.938 kB / 0.5335 GB, free: 11.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001398/0.2977, allocations: 78.39 kB / 0.5335 GB, free: 11.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/0.2977, allocations: 78.92 kB / 0.5336 GB, free: 11.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.985e-05/0.2978, allocations: 89.86 kB / 0.5337 GB, free: 11.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.022e-05/0.2978, allocations: 25.7 kB / 0.5337 GB, free: 11.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.696e-05/0.2978, allocations: 80.14 kB / 0.5338 GB, free: 11.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.2978, allocations: 1.781 kB / 0.5338 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.2979, allocations: 11.5 kB / 0.5338 GB, free: 11.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.2979, allocations: 318.8 kB / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.757e-06/0.298, allocations: 5.906 kB / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.102e-06/0.298, allocations: 1.812 kB / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.178e-05/0.298, allocations: 61.98 kB / 0.5342 GB, free: 11.08 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.298, allocations: 1.781 kB / 0.5342 GB, free: 11.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.131e-05/0.2981, allocations: 56.88 kB / 0.5342 GB, free: 11.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.2981, allocations: 36.28 kB / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.2981, allocations: 0 / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.2982, allocations: 3.938 kB / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.2982, allocations: 1.531 kB / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-06/0.2982, allocations: 4.094 kB / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.376e-05/0.2982, allocations: 0 / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.2982, allocations: 1.531 kB / 0.5343 GB, free: 10.98 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 6.702e-05/0.2983, allocations: 140.8 kB / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-06/0.2983, allocations: 1.312 kB / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.076e-06/0.2983, allocations: 4.469 kB / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2983, allocations: 7.938 kB / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2983, allocations: 0 / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.198e-05/0.2983, allocations: 82.41 kB / 0.5345 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.2984, allocations: 4 kB / 0.5345 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-06/0.2984, allocations: 5.281 kB / 0.5345 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.117e-05/0.2984, allocations: 0 / 0.5345 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001024/0.2985, allocations: 196.2 kB / 0.5347 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001198/0.2986, allocations: 235.3 kB / 0.5349 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.827e-05/0.2986, allocations: 14.02 kB / 0.535 GB, free: 10.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.099e-05/0.2987, allocations: 75.28 kB / 0.535 GB, free: 10.18 MB / 398.1 MB Notification: Performance of Backend: time 2.61e-07/0.2987, allocations: 0 / 0.535 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006942/0.2994, allocations: 311.4 kB / 0.5353 GB, free: 9.969 MB / 398.1 MB Notification: Performance of SimCode: time 0.0002929/0.2997, allocations: 0.5861 MB / 0.5359 GB, free: 9.328 MB / 398.1 MB Notification: Performance of Templates: time 0.02533/0.325, allocations: 0.9969 MB / 0.5369 GB, free: 8.797 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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