Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001465/0.001465, allocations: 109.1 kB / 21.18 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001625, allocations: 218 kB / 24.49 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 230.5 MB / 258.1 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2077/0.2077, allocations: 46.92 MB / 361.5 MB, free: 4.172 MB / 286.1 MB " [Timeout remaining time 180] 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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 79.86 kB / 0.4974 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2754, allocations: 66.08 MB / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001554/0.277, allocations: 483.7 kB / 0.5624 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005212/0.2775, allocations: 229.6 kB / 0.5626 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.263e-05/0.2775, allocations: 0 / 0.5626 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.124e-05/0.2775, allocations: 0 / 0.5626 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.638e-06/0.2775, allocations: 0 / 0.5626 GB, free: 3.559 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002774/0.2778, allocations: 55.83 kB / 0.5627 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.38e-05/0.2778, allocations: 0 / 0.5627 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.195e-05/0.2779, allocations: 7.984 kB / 0.5627 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.264e-05/0.2779, allocations: 0 / 0.5627 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.761e-05/0.2779, allocations: 4 kB / 0.5627 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.668e-06/0.2779, allocations: 0 / 0.5627 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.2781, allocations: 55.95 kB / 0.5627 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-06/0.2781, allocations: 0 / 0.5627 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.756e-05/0.2781, allocations: 0 / 0.5627 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.2782, allocations: 47.67 kB / 0.5628 GB, free: 3.395 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2782, allocations: 0 / 0.5628 GB, free: 3.395 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2782, allocations: 4 kB / 0.5628 GB, free: 3.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.2782, allocations: 0 / 0.5628 GB, free: 3.391 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.0003045/0.2785, allocations: 270.6 kB / 0.563 GB, free: 3.094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.2785, allocations: 12.03 kB / 0.5631 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.78e-05/0.2786, allocations: 4.875 kB / 0.5631 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.536e-05/0.2786, allocations: 106.5 kB / 0.5632 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.2786, allocations: 4.375 kB / 0.5632 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-06/0.2787, allocations: 384 / 0.5632 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.728e-05/0.2787, allocations: 34.25 kB / 0.5632 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.2787, allocations: 4.188 kB / 0.5632 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-06/0.2787, allocations: 3.938 kB / 0.5632 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.2788, allocations: 0 / 0.5632 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.33e-05/0.2788, allocations: 4 kB / 0.5632 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001258/0.2789, allocations: 120.7 kB / 0.5633 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.432e-05/0.2789, allocations: 18.52 kB / 0.5633 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.644e-05/0.279, allocations: 12.84 kB / 0.5634 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.126e-06/0.279, allocations: 0 / 0.5634 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.808e-05/0.279, allocations: 60.33 kB / 0.5634 GB, free: 2.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.279, allocations: 3.938 kB / 0.5634 GB, free: 2.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001474/0.2792, allocations: 67.34 kB / 0.5635 GB, free: 2.535 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.2792, allocations: 77.11 kB / 0.5636 GB, free: 2.441 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.811e-05/0.2793, allocations: 97.8 kB / 0.5636 GB, free: 2.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.2793, allocations: 25.7 kB / 0.5637 GB, free: 2.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.816e-05/0.2793, allocations: 88.08 kB / 0.5638 GB, free: 2.215 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.2793, allocations: 0 / 0.5638 GB, free: 2.215 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.827e-05/0.2794, allocations: 13.72 kB / 0.5638 GB, free: 2.195 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.2795, allocations: 311 kB / 0.5641 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.584e-06/0.2795, allocations: 4 kB / 0.5641 GB, free: 1.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.242e-06/0.2795, allocations: 4 kB / 0.5641 GB, free: 1.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.454e-05/0.2795, allocations: 56.27 kB / 0.5641 GB, free: 1.805 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2795, allocations: 0 / 0.5641 GB, free: 1.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.652e-05/0.2796, allocations: 67.39 kB / 0.5642 GB, free: 1.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/0.2797, allocations: 33.7 kB / 0.5642 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2797, allocations: 0 / 0.5642 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.2797, allocations: 3.938 kB / 0.5642 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.2797, allocations: 4.094 kB / 0.5642 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.416e-06/0.2797, allocations: 3.938 kB / 0.5642 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.382e-05/0.2797, allocations: 0 / 0.5642 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.2797, allocations: 0 / 0.5642 GB, free: 1.676 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 9.169e-05/0.2798, allocations: 139.5 kB / 0.5644 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.752e-06/0.2798, allocations: 0 / 0.5644 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.048e-05/0.2798, allocations: 6.938 kB / 0.5644 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.2798, allocations: 0 / 0.5644 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2798, allocations: 0 / 0.5644 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-06/0.2798, allocations: 8 kB / 0.5644 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.381e-05/0.2799, allocations: 116.8 kB / 0.5645 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.2799, allocations: 7.922 kB / 0.5645 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.2799, allocations: 0 / 0.5645 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.2799, allocations: 0 / 0.5645 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.2799, allocations: 7.938 kB / 0.5645 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.2799, allocations: 4 kB / 0.5645 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2799, allocations: 0 / 0.5645 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.28, allocations: 94.83 kB / 0.5646 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.106e-06/0.28, allocations: 0 / 0.5646 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.28, allocations: 7.875 kB / 0.5646 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.995e-06/0.28, allocations: 3.938 kB / 0.5646 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.336e-06/0.28, allocations: 0 / 0.5646 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.28, allocations: 4 kB / 0.5646 GB, free: 1.199 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.272e-05/0.2801, allocations: 75.28 kB / 0.5647 GB, free: 1.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2801, allocations: 0 / 0.5647 GB, free: 1.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002251/0.2803, allocations: 19.94 kB / 0.5647 GB, free: 1.105 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.0003967/0.2807, allocations: 179.4 kB / 0.5649 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.584e-05/0.2808, allocations: 59.39 kB / 0.5649 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2808, allocations: 0 / 0.5649 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.049e-05/0.2808, allocations: 55.41 kB / 0.565 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.2809, allocations: 4 kB / 0.565 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001725/0.2811, allocations: 106.7 kB / 0.5651 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.2814, allocations: 0.6844 MB / 0.5658 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.044e-05/0.2814, allocations: 7.438 kB / 0.5658 GB, free: 15.95 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2814, allocations: 4.125 kB / 0.5658 GB, free: 15.94 MB / 414.1 MB Notification: Performance of Templates: time 0.002184/0.2836, allocations: 0.7503 MB / 0.5665 GB, free: 15.19 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.549398794071749]