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.001419/0.001419, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 204 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2266/0.2266, allocations: 46.1 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 75.88 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3127, allocations: 62.43 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00177/0.3145, allocations: 493.9 kB / 0.5321 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006579/0.3152, allocations: 248.1 kB / 0.5323 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.682e-05/0.3153, allocations: 0 / 0.5323 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.898e-05/0.3153, allocations: 0 / 0.5323 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.793e-06/0.3153, allocations: 3.938 kB / 0.5323 GB, free: 13.05 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.0004373/0.3158, allocations: 56.34 kB / 0.5324 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.235e-05/0.3159, allocations: 1.281 kB / 0.5324 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.853e-05/0.3159, allocations: 9.438 kB / 0.5324 GB, free: 13 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.757e-05/0.3159, allocations: 1.312 kB / 0.5324 GB, free: 13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.268e-05/0.316, allocations: 4 kB / 0.5324 GB, free: 13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.037e-05/0.316, allocations: 1.406 kB / 0.5324 GB, free: 13 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/0.3162, allocations: 63.56 kB / 0.5325 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.235e-06/0.3162, allocations: 0 / 0.5325 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.481e-05/0.3162, allocations: 6.047 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.3164, allocations: 49.39 kB / 0.5325 GB, free: 12.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.3164, allocations: 0 / 0.5325 GB, free: 12.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3164, allocations: 3.938 kB / 0.5325 GB, free: 12.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.3164, allocations: 0 / 0.5325 GB, free: 12.93 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.0003908/0.3168, allocations: 363.4 kB / 0.5329 GB, free: 12.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.3169, allocations: 9.156 kB / 0.5329 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.3169, allocations: 0.9375 kB / 0.5329 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.317, allocations: 160.4 kB / 0.533 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-06/0.317, allocations: 1.875 kB / 0.533 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.317, allocations: 384 / 0.533 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.3172, allocations: 33.25 kB / 0.5331 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.3172, allocations: 192 / 0.5331 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.3172, allocations: 3.938 kB / 0.5331 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.3172, allocations: 5.375 kB / 0.5331 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.906e-05/0.3172, allocations: 5.656 kB / 0.5331 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000135/0.3174, allocations: 145.7 kB / 0.5332 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.951e-05/0.3174, allocations: 21.52 kB / 0.5332 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.692e-05/0.3174, allocations: 6.234 kB / 0.5333 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.179e-06/0.3174, allocations: 0 / 0.5333 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.3175, allocations: 57.64 kB / 0.5333 GB, free: 11.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3175, allocations: 0 / 0.5333 GB, free: 11.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001832/0.3177, allocations: 79.22 kB / 0.5334 GB, free: 11.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.3178, allocations: 81.11 kB / 0.5335 GB, free: 11.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.826e-05/0.3178, allocations: 91.14 kB / 0.5335 GB, free: 11.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.3178, allocations: 25.7 kB / 0.5336 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.478e-05/0.3179, allocations: 80.14 kB / 0.5336 GB, free: 11.6 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.3179, allocations: 1.375 kB / 0.5336 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-05/0.3179, allocations: 11.62 kB / 0.5337 GB, free: 11.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.318, allocations: 324.2 kB / 0.534 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-06/0.3181, allocations: 0 / 0.534 GB, free: 11.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.213e-06/0.3181, allocations: 1.25 kB / 0.534 GB, free: 11.26 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.252e-05/0.3181, allocations: 68.3 kB / 0.534 GB, free: 11.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3181, allocations: 0 / 0.534 GB, free: 11.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.053e-05/0.3182, allocations: 57.41 kB / 0.5341 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.3183, allocations: 35.88 kB / 0.5341 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3183, allocations: 3.938 kB / 0.5341 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.3183, allocations: 6.25 kB / 0.5341 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.3183, allocations: 4 kB / 0.5341 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.3183, allocations: 0 / 0.5341 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.795e-05/0.3183, allocations: 4 kB / 0.5341 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.3183, allocations: 0.7812 kB / 0.5341 GB, free: 11.07 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.871e-05/0.3184, allocations: 138.2 kB / 0.5343 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.187e-05/0.3185, allocations: 5.531 kB / 0.5343 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.131e-05/0.3185, allocations: 7.062 kB / 0.5343 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3185, allocations: 0 / 0.5343 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3185, allocations: 0 / 0.5343 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.3185, allocations: 9.234 kB / 0.5343 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.179e-05/0.3186, allocations: 142.9 kB / 0.5344 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3186, allocations: 0 / 0.5344 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.253e-06/0.3186, allocations: 1.062 kB / 0.5344 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3186, allocations: 0 / 0.5344 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.3186, allocations: 5.25 kB / 0.5344 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.3186, allocations: 0 / 0.5344 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3186, allocations: 3.938 kB / 0.5344 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.3187, allocations: 94.8 kB / 0.5345 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.987e-05/0.3188, allocations: 77.11 kB / 0.5346 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.3188, allocations: 5.125 kB / 0.5346 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.114e-05/0.3188, allocations: 1.031 kB / 0.5346 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.3188, allocations: 3.984 kB / 0.5346 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.3189, allocations: 1.344 kB / 0.5346 GB, free: 10.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.578e-05/0.3189, allocations: 75.28 kB / 0.5347 GB, free: 10.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3189, allocations: 0 / 0.5347 GB, free: 10.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002511/0.3191, allocations: 23.34 kB / 0.5347 GB, free: 10.42 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.0005373/0.3197, allocations: 273 kB / 0.535 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.556e-05/0.3198, allocations: 68.67 kB / 0.535 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3198, allocations: 0 / 0.535 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.955e-05/0.3199, allocations: 55 kB / 0.5351 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.0001346/0.32, allocations: 9.656 kB / 0.5351 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001805/0.3202, allocations: 104.1 kB / 0.5352 GB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002242/0.3204, allocations: 0.6748 MB / 0.5359 GB, free: 9.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.218e-05/0.3204, allocations: 11.56 kB / 0.5359 GB, free: 9.27 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3204, allocations: 0 / 0.5359 GB, free: 9.27 MB / 398.1 MB Notification: Performance of Templates: time 0.002497/0.3229, allocations: 0.9566 MB / 0.5368 GB, free: 8.777 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches