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) 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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001193/0.001193, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00126/0.00126, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2346/0.2346, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 71.88 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3808, allocations: 62.44 MB / 0.531 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001422/0.3822, allocations: 487.2 kB / 0.5314 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004811/0.3827, allocations: 209.3 kB / 0.5316 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.437e-05/0.3828, allocations: 2.312 kB / 0.5316 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.591e-05/0.3828, allocations: 3.938 kB / 0.5316 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.05e-06/0.3828, allocations: 0 / 0.5316 GB, free: 13.32 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:289:3-320: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.0002743/0.3831, allocations: 49.11 kB / 0.5317 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.413e-05/0.3831, allocations: 5.359 kB / 0.5317 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.781e-05/0.3832, allocations: 1.375 kB / 0.5317 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.461e-05/0.3832, allocations: 1.375 kB / 0.5317 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.041e-05/0.3832, allocations: 0 / 0.5317 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.661e-06/0.3833, allocations: 4 kB / 0.5317 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.3834, allocations: 51.45 kB / 0.5317 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.324e-06/0.3834, allocations: 0 / 0.5317 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.874e-05/0.3834, allocations: 1.375 kB / 0.5317 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.3836, allocations: 44.8 kB / 0.5318 GB, free: 13.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3836, allocations: 0 / 0.5318 GB, free: 13.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.3836, allocations: 3.984 kB / 0.5318 GB, free: 13.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.3836, allocations: 0 / 0.5318 GB, free: 13.23 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.0003184/0.3839, allocations: 350.6 kB / 0.5321 GB, free: 12.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.384, allocations: 8.219 kB / 0.5321 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.298e-05/0.384, allocations: 10.05 kB / 0.5321 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.958e-05/0.3841, allocations: 160.4 kB / 0.5323 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.3841, allocations: 5.531 kB / 0.5323 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-06/0.3841, allocations: 1.531 kB / 0.5323 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.582e-05/0.3842, allocations: 32.67 kB / 0.5323 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.3842, allocations: 192 / 0.5323 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.3842, allocations: 3.938 kB / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3842, allocations: 0 / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.661e-05/0.3842, allocations: 10.33 kB / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001249/0.3844, allocations: 154.6 kB / 0.5325 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.772e-05/0.3844, allocations: 16.33 kB / 0.5325 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.513e-05/0.3844, allocations: 10.08 kB / 0.5325 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.053e-06/0.3845, allocations: 0 / 0.5325 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.3845, allocations: 57.64 kB / 0.5326 GB, free: 12.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.3845, allocations: 1.062 kB / 0.5326 GB, free: 12.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001642/0.3847, allocations: 70.58 kB / 0.5326 GB, free: 12.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/0.3847, allocations: 82.61 kB / 0.5327 GB, free: 12.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.677e-05/0.3848, allocations: 93.81 kB / 0.5328 GB, free: 12.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.3848, allocations: 25.7 kB / 0.5328 GB, free: 11.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.673e-05/0.3848, allocations: 81.52 kB / 0.5329 GB, free: 11.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.468e-05/0.3848, allocations: 3.938 kB / 0.5329 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.3849, allocations: 12.62 kB / 0.5329 GB, free: 11.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.913e-05/0.385, allocations: 310.8 kB / 0.5332 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.385, allocations: 0.9375 kB / 0.5332 GB, free: 11.56 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.054e-06/0.385, allocations: 12.92 kB / 0.5332 GB, free: 11.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.62e-05/0.3851, allocations: 63.36 kB / 0.5333 GB, free: 11.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3851, allocations: 0 / 0.5333 GB, free: 11.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.121e-05/0.3851, allocations: 62.84 kB / 0.5334 GB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.3852, allocations: 31.02 kB / 0.5334 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3852, allocations: 3.984 kB / 0.5334 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.3852, allocations: 5.625 kB / 0.5334 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.3852, allocations: 0 / 0.5334 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.3852, allocations: 8.078 kB / 0.5334 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.526e-05/0.3852, allocations: 1.312 kB / 0.5334 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.3852, allocations: 0 / 0.5334 GB, free: 11.36 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.738e-05/0.3853, allocations: 141.7 kB / 0.5335 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-06/0.3853, allocations: 5.375 kB / 0.5335 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.837e-06/0.3854, allocations: 7.062 kB / 0.5336 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3854, allocations: 0.8125 kB / 0.5336 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.3854, allocations: 0 / 0.5336 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.3854, allocations: 1.062 kB / 0.5336 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.285e-05/0.3855, allocations: 150.8 kB / 0.5337 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3855, allocations: 0.7812 kB / 0.5337 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3855, allocations: 0 / 0.5337 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3855, allocations: 0.9375 kB / 0.5337 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-06/0.3855, allocations: 4.938 kB / 0.5337 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.3855, allocations: 0 / 0.5337 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3855, allocations: 0 / 0.5337 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.502e-05/0.3856, allocations: 90.42 kB / 0.5338 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.105e-05/0.3856, allocations: 81.14 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.3857, allocations: 13.22 kB / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-06/0.3857, allocations: 1.312 kB / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.201e-05/0.3857, allocations: 0 / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.3857, allocations: 5.422 kB / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.528e-05/0.3857, allocations: 75.28 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3857, allocations: 3.938 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002032/0.386, allocations: 20.62 kB / 0.534 GB, free: 10.7 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.0004168/0.3864, allocations: 195.4 kB / 0.5342 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.3865, allocations: 60.34 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3865, allocations: 0 / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.461e-05/0.3866, allocations: 54.69 kB / 0.5343 GB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.3867, allocations: 8.562 kB / 0.5343 GB, free: 10.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002003/0.3869, allocations: 79.61 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.3872, allocations: 0.67 MB / 0.535 GB, free: 9.641 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.452e-06/0.3872, allocations: 4.125 kB / 0.535 GB, free: 9.637 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.195e-05/0.3872, allocations: 8.594 kB / 0.535 GB, free: 9.629 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3872, allocations: 0 / 0.535 GB, free: 9.629 MB / 398.1 MB Notification: Performance of Templates: time 0.003178/0.3904, allocations: 0.58 MB / 0.5356 GB, free: 9.316 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches