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.000794/0.000794, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.0008829/0.0008829, allocations: 169.5 kB / 24.91 MB, free: 8.773 MB / 18.57 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.001/1.001, allocations: 177 MB / 205.2 MB, free: 5.453 MB / 186.7 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.2798/0.2798, allocations: 34.87 MB / 296.6 MB, free: 452 kB / 266.7 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 1.413e-06/1.413e-06, allocations: 0 / 325.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.116e-05/2.257e-05, allocations: 4 kB / 325.9 MB, free: 7.117 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001248/0.00127, allocations: 0.532 MB / 326.5 MB, free: 6.586 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003941/0.001664, allocations: 223.3 kB / 326.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.906e-05/0.001683, allocations: 0 / 326.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.027e-05/0.001694, allocations: 0 / 326.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.34e-06/0.001699, allocations: 4 kB / 326.7 MB, free: 6.363 MB / 298.7 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.0002188/0.001918, allocations: 43.77 kB / 326.7 MB, free: 6.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.44e-05/0.001962, allocations: 0 / 326.7 MB, free: 6.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.224e-05/0.001994, allocations: 16.55 kB / 326.7 MB, free: 6.305 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.595e-05/0.00202, allocations: 0 / 326.7 MB, free: 6.305 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.319e-05/0.002044, allocations: 0 / 326.7 MB, free: 6.305 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.121e-06/0.00205, allocations: 0 / 326.7 MB, free: 6.305 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.002168, allocations: 51.89 kB / 326.8 MB, free: 6.254 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.913e-06/0.002174, allocations: 0 / 326.8 MB, free: 6.254 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.332e-05/0.002188, allocations: 0 / 326.8 MB, free: 6.254 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.664e-05/0.002284, allocations: 51.86 kB / 326.8 MB, free: 6.203 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.002286, allocations: 4 kB / 326.8 MB, free: 6.199 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.002287, allocations: 0 / 326.8 MB, free: 6.199 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.002291, allocations: 3.938 kB / 326.9 MB, free: 6.195 MB / 298.7 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.0001933/0.002484, allocations: 254.3 kB / 327.1 MB, free: 5.914 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.949e-05/0.002513, allocations: 8.031 kB / 327.1 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.097e-05/0.002534, allocations: 4.938 kB / 327.1 MB, free: 5.902 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.843e-05/0.002583, allocations: 105.7 kB / 327.2 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.244e-06/0.00259, allocations: 384 / 327.2 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-06/0.002594, allocations: 384 / 327.2 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.777e-05/0.002652, allocations: 63.95 kB / 327.3 MB, free: 5.699 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.079e-06/0.002657, allocations: 192 / 327.3 MB, free: 5.699 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-06/0.002662, allocations: 384 / 327.3 MB, free: 5.699 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.002666, allocations: 384 / 327.3 MB, free: 5.699 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.486e-05/0.002681, allocations: 37.64 kB / 327.3 MB, free: 5.656 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.57e-05/0.002737, allocations: 57.03 kB / 327.4 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.776e-05/0.002774, allocations: 48.25 kB / 327.4 MB, free: 5.523 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.314e-05/0.002788, allocations: 30.56 kB / 327.4 MB, free: 5.484 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-06/0.002791, allocations: 4.062 kB / 327.5 MB, free: 5.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.002821, allocations: 64.25 kB / 327.5 MB, free: 5.402 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.002821, allocations: 0 / 327.5 MB, free: 5.402 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.873e-05/0.00292, allocations: 114.8 kB / 327.6 MB, free: 5.266 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.002951, allocations: 77.11 kB / 327.7 MB, free: 5.172 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.964e-05/0.00298, allocations: 93.97 kB / 327.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.043e-06/0.002987, allocations: 29.7 kB / 327.8 MB, free: 5.035 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.788e-05/0.003005, allocations: 80.14 kB / 327.9 MB, free: 4.953 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.00302, allocations: 1.375 kB / 327.9 MB, free: 4.953 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/0.00304, allocations: 13.72 kB / 327.9 MB, free: 4.934 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.692e-05/0.003107, allocations: 314.8 kB / 328.2 MB, free: 4.617 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.856e-05/0.003126, allocations: 29.7 kB / 328.3 MB, free: 4.582 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.198e-05/0.003138, allocations: 25.7 kB / 328.3 MB, free: 4.551 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.829e-05/0.003176, allocations: 64.25 kB / 328.3 MB, free: 4.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.003177, allocations: 0 / 328.3 MB, free: 4.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.034e-05/0.003228, allocations: 93.11 kB / 328.4 MB, free: 4.363 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.003252, allocations: 33.7 kB / 328.5 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.003256, allocations: 0 / 328.5 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/0.003264, allocations: 0 / 328.5 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.003266, allocations: 0 / 328.5 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-06/0.003269, allocations: 0 / 328.5 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.133e-05/0.00328, allocations: 3.984 kB / 328.5 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.003286, allocations: 4 kB / 328.5 MB, free: 4.316 MB / 298.7 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 5.384e-05/0.00334, allocations: 135.5 kB / 328.6 MB, free: 4.168 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-06/0.003345, allocations: 4 kB / 328.6 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.696e-06/0.003354, allocations: 14.95 kB / 328.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.003355, allocations: 0 / 328.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-06/0.003356, allocations: 0 / 328.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.003358, allocations: 0 / 328.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.314e-05/0.003402, allocations: 70.58 kB / 328.7 MB, free: 4.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.003403, allocations: 3.984 kB / 328.7 MB, free: 4.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.623e-06/0.003405, allocations: 4 kB / 328.7 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.31e-07/0.003406, allocations: 0 / 328.7 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-06/0.003409, allocations: 0 / 328.7 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.41e-07/0.00341, allocations: 0 / 328.7 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.00341, allocations: 0 / 328.7 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.455e-05/0.003475, allocations: 128.4 kB / 328.8 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.797e-06/0.003479, allocations: 352 / 328.8 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.017e-06/0.003488, allocations: 0 / 328.8 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.418e-06/0.003492, allocations: 0 / 328.8 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.717e-06/0.003501, allocations: 8 kB / 328.8 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.003503, allocations: 0 / 328.8 MB, free: 3.895 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.801e-06/0.003509, allocations: 4.859 kB / 328.8 MB, free: 3.887 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003509, allocations: 0 / 328.8 MB, free: 3.887 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001246/0.003634, allocations: 19.92 kB / 328.9 MB, free: 3.867 MB / 298.7 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.0003515/0.003985, allocations: 203.5 kB / 329.1 MB, free: 3.723 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.47e-05/0.00408, allocations: 115.7 kB / 329.2 MB, free: 3.582 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.004083, allocations: 0 / 329.2 MB, free: 3.582 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.043e-05/0.004113, allocations: 93.91 kB / 329.3 MB, free: 3.469 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.007e-05/0.004163, allocations: 14.42 kB / 329.3 MB, free: 3.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001386/0.004302, allocations: 104.9 kB / 329.4 MB, free: 3.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.841e-05/0.00433, allocations: 51.36 kB / 329.4 MB, free: 3.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.32e-06/0.004336, allocations: 0 / 329.4 MB, free: 3.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.004374, allocations: 55.36 kB / 329.5 MB, free: 3.195 MB / 298.7 MB Notification: Performance of SimCode: time 1.102e-06/0.004375, allocations: 3.938 kB / 329.5 MB, free: 3.191 MB / 298.7 MB Notification: Performance of Templates: time 0.002131/0.006506, allocations: 0.6865 MB / 330.2 MB, free: 2.508 MB / 298.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.792380507104099]