Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001652/0.001652, 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.002272/0.002273, 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.539/1.539, allocations: 227.4 MB / 246.9 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.2728/0.2728, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3528, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001916/0.3548, allocations: 495.8 kB / 0.5314 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000578/0.3554, allocations: 246.7 kB / 0.5317 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.13e-05/0.3554, allocations: 3.938 kB / 0.5317 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.878e-05/0.3555, allocations: 1.562 kB / 0.5317 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.531e-06/0.3555, allocations: 0 / 0.5317 GB, free: 13.06 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.3558, allocations: 60.47 kB / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.158e-05/0.3559, allocations: 0 / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.762e-05/0.3559, allocations: 2.344 kB / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.577e-05/0.356, allocations: 0 / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.607e-05/0.356, allocations: 7.797 kB / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.238e-06/0.356, allocations: 4 kB / 0.5318 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.3562, allocations: 68.91 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.075e-06/0.3562, allocations: 3.938 kB / 0.5318 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.994e-05/0.3562, allocations: 0 / 0.5318 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.3564, allocations: 57.16 kB / 0.5319 GB, free: 12.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3564, allocations: 0 / 0.5319 GB, free: 12.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3564, allocations: 0 / 0.5319 GB, free: 12.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.3564, allocations: 0 / 0.5319 GB, free: 12.94 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.0003618/0.3568, allocations: 360.1 kB / 0.5322 GB, free: 12.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3568, allocations: 6.656 kB / 0.5322 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.3568, allocations: 6.312 kB / 0.5322 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.357, allocations: 160.4 kB / 0.5324 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.357, allocations: 1.75 kB / 0.5324 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-06/0.357, allocations: 384 / 0.5324 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.89e-05/0.3571, allocations: 33 kB / 0.5324 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.3571, allocations: 192 / 0.5324 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.3571, allocations: 9.297 kB / 0.5324 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3571, allocations: 0 / 0.5324 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.876e-05/0.3571, allocations: 5.312 kB / 0.5324 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.3573, allocations: 151.1 kB / 0.5326 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.074e-05/0.3573, allocations: 15.95 kB / 0.5326 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.816e-05/0.3574, allocations: 10.22 kB / 0.5326 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.3574, allocations: 0 / 0.5326 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/0.3574, allocations: 57.64 kB / 0.5327 GB, free: 12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.3574, allocations: 1.375 kB / 0.5327 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001786/0.3576, allocations: 74.2 kB / 0.5327 GB, free: 11.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.3577, allocations: 82.52 kB / 0.5328 GB, free: 11.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.28e-05/0.3578, allocations: 93.84 kB / 0.5329 GB, free: 11.72 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.3578, allocations: 25.7 kB / 0.5329 GB, free: 11.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.351e-05/0.3578, allocations: 81.52 kB / 0.533 GB, free: 11.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.538e-05/0.3578, allocations: 3.938 kB / 0.533 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.3579, allocations: 12.47 kB / 0.533 GB, free: 11.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.358, allocations: 314.8 kB / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.032e-05/0.358, allocations: 1.375 kB / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.358, allocations: 5.375 kB / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.489e-05/0.3581, allocations: 59.02 kB / 0.5334 GB, free: 11.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3581, allocations: 0 / 0.5334 GB, free: 11.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.656e-05/0.3581, allocations: 70.14 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.3582, allocations: 35.2 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3582, allocations: 1.219 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.3582, allocations: 3.938 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.3582, allocations: 0 / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.3582, allocations: 5.438 kB / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.54e-05/0.3582, allocations: 0 / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.3583, allocations: 1.344 kB / 0.5335 GB, free: 11.08 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 0.0001195/0.3584, allocations: 142.2 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-06/0.3584, allocations: 0 / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.708e-06/0.3584, allocations: 8.406 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.3584, allocations: 0 / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3584, allocations: 0 / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3584, allocations: 1.344 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001103/0.3585, allocations: 146.9 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3586, allocations: 7.984 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3586, allocations: 0 / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.3586, allocations: 1.75 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.3586, allocations: 3.938 kB / 0.5338 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.3586, allocations: 0 / 0.5338 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3586, allocations: 1.812 kB / 0.5338 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.786e-05/0.3587, allocations: 92.83 kB / 0.5339 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.838e-05/0.3587, allocations: 81.14 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.3588, allocations: 5.344 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-06/0.3588, allocations: 1.406 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.134e-05/0.3588, allocations: 4 kB / 0.534 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.3588, allocations: 1.062 kB / 0.534 GB, free: 10.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.161e-05/0.3588, allocations: 75.28 kB / 0.534 GB, free: 10.44 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.3588, allocations: 0 / 0.534 GB, free: 10.44 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002408/0.3591, allocations: 28.33 kB / 0.5341 GB, free: 10.43 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.0006055/0.3597, allocations: 271.1 kB / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.888e-05/0.3598, allocations: 56.72 kB / 0.5344 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3598, allocations: 5.344 kB / 0.5344 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.276e-05/0.3599, allocations: 58.09 kB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.36, allocations: 5.344 kB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001936/0.3602, allocations: 84.58 kB / 0.5345 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.3604, allocations: 0.6701 MB / 0.5352 GB, free: 9.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.5e-06/0.3605, allocations: 0 / 0.5352 GB, free: 9.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.959e-06/0.3605, allocations: 12.91 kB / 0.5352 GB, free: 9.309 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3605, allocations: 0 / 0.5352 GB, free: 9.309 MB / 398.1 MB Notification: Performance of Templates: time 0.003029/0.3635, allocations: 0.8 MB / 0.536 GB, free: 8.871 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches