Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001801/0.001801, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.688/1.688, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 97.23 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4273/0.4273, allocations: 44.83 MB / 392.7 MB, free: 34.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001124, allocations: 63.89 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3481, allocations: 62.02 MB / 0.5151 GB, free: 37.7 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001509/0.3497, allocations: 0.5445 MB / 0.5157 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.3513, allocations: 1.285 MB / 0.5169 GB, free: 36.49 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.404e-05/0.3514, allocations: 0 / 0.5169 GB, free: 36.49 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.585e-05/0.3514, allocations: 0 / 0.5169 GB, free: 36.49 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.3516, allocations: 11.19 kB / 0.5169 GB, free: 36.48 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009565/0.3525, allocations: 186 kB / 0.5171 GB, free: 36.4 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.593e-05/0.3526, allocations: 10.91 kB / 0.5171 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.811e-05/0.3526, allocations: 6 kB / 0.5171 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.906e-05/0.3526, allocations: 0 / 0.5171 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.092e-05/0.3527, allocations: 9.438 kB / 0.5171 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.855e-06/0.3527, allocations: 0 / 0.5171 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002777/0.3555, allocations: 0.6108 MB / 0.5177 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.167e-06/0.3555, allocations: 2.719 kB / 0.5177 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.166e-05/0.3555, allocations: 3.938 kB / 0.5177 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002182/0.3558, allocations: 178.8 kB / 0.5179 GB, free: 36.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3558, allocations: 0 / 0.5179 GB, free: 36.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.3558, allocations: 3.938 kB / 0.5179 GB, free: 36.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.3558, allocations: 3.938 kB / 0.5179 GB, free: 36.16 MB / 378.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.0003536/0.3562, allocations: 385.7 kB / 0.5183 GB, free: 35.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3562, allocations: 11.12 kB / 0.5183 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/0.3562, allocations: 0.9375 kB / 0.5183 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.993e-05/0.3563, allocations: 160.4 kB / 0.5185 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.3563, allocations: 384 / 0.5185 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.3564, allocations: 3.219 kB / 0.5185 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.766e-05/0.3564, allocations: 36.08 kB / 0.5185 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3565, allocations: 0 / 0.5185 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.3565, allocations: 4 kB / 0.5185 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.3565, allocations: 0 / 0.5185 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.3565, allocations: 6.719 kB / 0.5185 GB, free: 35.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001089/0.3566, allocations: 148.9 kB / 0.5186 GB, free: 35.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.368e-05/0.3567, allocations: 17.3 kB / 0.5187 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.406e-05/0.3567, allocations: 7.766 kB / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.3567, allocations: 0 / 0.5187 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.3567, allocations: 64.2 kB / 0.5187 GB, free: 35.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.463e-06/0.3567, allocations: 0 / 0.5187 GB, free: 35.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001481/0.3569, allocations: 75.22 kB / 0.5188 GB, free: 35.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/0.3569, allocations: 79.83 kB / 0.5189 GB, free: 35.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.416e-05/0.357, allocations: 92.86 kB / 0.519 GB, free: 34.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.993e-06/0.357, allocations: 25.7 kB / 0.519 GB, free: 34.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.468e-05/0.357, allocations: 83.61 kB / 0.5191 GB, free: 34.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.357, allocations: 4.156 kB / 0.5191 GB, free: 34.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.227e-05/0.357, allocations: 20.56 kB / 0.5191 GB, free: 34.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.436e-05/0.3571, allocations: 310.8 kB / 0.5194 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.338e-06/0.3571, allocations: 2.812 kB / 0.5194 GB, free: 34.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.39e-06/0.3571, allocations: 0 / 0.5194 GB, free: 34.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.955e-05/0.3571, allocations: 62.05 kB / 0.5195 GB, free: 34.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3572, allocations: 0 / 0.5195 GB, free: 34.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.575e-05/0.3572, allocations: 75.14 kB / 0.5195 GB, free: 34.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.3573, allocations: 32.8 kB / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.3573, allocations: 2.719 kB / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.3573, allocations: 0 / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.3573, allocations: 0 / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.3573, allocations: 7.359 kB / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.531e-05/0.3573, allocations: 0 / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.3573, allocations: 3 kB / 0.5196 GB, free: 34.31 MB / 378.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 4.837e-05/0.3574, allocations: 131.5 kB / 0.5197 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.051e-05/0.3574, allocations: 10.69 kB / 0.5197 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.967e-06/0.3574, allocations: 14.7 kB / 0.5197 GB, free: 34.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.3574, allocations: 0 / 0.5197 GB, free: 34.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3574, allocations: 3.938 kB / 0.5197 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3574, allocations: 2.938 kB / 0.5197 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.935e-05/0.3575, allocations: 149 kB / 0.5199 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.42e-07/0.3575, allocations: 0 / 0.5199 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.124e-06/0.3575, allocations: 6.438 kB / 0.5199 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.3575, allocations: 0 / 0.5199 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.3575, allocations: 3.469 kB / 0.5199 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.3575, allocations: 0 / 0.5199 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3575, allocations: 0 / 0.5199 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001996/0.3577, allocations: 0.6383 MB / 0.5205 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.756e-05/0.3578, allocations: 87.42 kB / 0.5206 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.3578, allocations: 0 / 0.5206 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.187e-06/0.3578, allocations: 3.938 kB / 0.5206 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.172e-05/0.3578, allocations: 2.938 kB / 0.5206 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.3578, allocations: 4.031 kB / 0.5206 GB, free: 33.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.624e-05/0.3578, allocations: 79.28 kB / 0.5207 GB, free: 33.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3578, allocations: 2.844 kB / 0.5207 GB, free: 33.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004108/0.3583, allocations: 62.12 kB / 0.5207 GB, free: 33.07 MB / 378.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.0005372/0.3588, allocations: 339.8 kB / 0.5211 GB, free: 32.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.947e-05/0.3589, allocations: 61.16 kB / 0.5211 GB, free: 32.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3589, allocations: 4.062 kB / 0.5211 GB, free: 32.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.873e-05/0.3589, allocations: 57.58 kB / 0.5212 GB, free: 32.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.3591, allocations: 2.625 kB / 0.5212 GB, free: 32.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000202/0.3593, allocations: 184.7 kB / 0.5214 GB, free: 32.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.907e-05/0.3594, allocations: 0.6755 MB / 0.522 GB, free: 31.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.066e-05/0.3594, allocations: 0 / 0.522 GB, free: 31.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.675e-06/0.3594, allocations: 9.969 kB / 0.522 GB, free: 31.84 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3594, allocations: 64 / 0.522 GB, free: 31.84 MB / 378.7 MB Notification: Performance of Templates: time 0.003765/0.3632, allocations: 1.588 MB / 0.5236 GB, free: 31.64 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches