Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.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.001044/0.001044, allocations: 75.69 kB / 21.7 MB, free: 2.844 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.001327/0.001327, allocations: 163.8 kB / 24.99 MB, free: 9.285 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 0.9803/0.9803, allocations: 177 MB / 205.2 MB, free: 5.617 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.3082/0.3082, allocations: 34.87 MB / 296.6 MB, free: 464 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.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.106e-06/3.106e-06, allocations: 3.938 kB / 378.7 MB, free: 2.434 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.254e-05/5.564e-05, allocations: 2.312 kB / 378.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001734/0.001789, allocations: 0.4897 MB / 379.2 MB, free: 1.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002255/0.004045, allocations: 1.32 MB / 380.5 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.988e-05/0.004074, allocations: 0 / 380.5 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.091e-05/0.004095, allocations: 0 / 380.5 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.185e-06/0.004104, allocations: 0 / 380.5 MB, free: 0.6133 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:4:3-230:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00199/0.006094, allocations: 0.6268 MB / 381.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 8.226e-05/0.006176, allocations: 0 / 381.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.411e-05/0.00623, allocations: 3.984 kB / 381.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.901e-05/0.006279, allocations: 4 kB / 381.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.731e-05/0.006317, allocations: 0 / 381.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.006331, allocations: 0 / 381.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01391/0.02025, allocations: 5.117 MB / 386.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.568e-05/0.02026, allocations: 0 / 386.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.494e-05/0.0203, allocations: 0 / 386.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004649/0.02076, allocations: 215.6 kB / 386.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.02077, allocations: 0 / 386.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.02077, allocations: 3.938 kB / 386.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.02078, allocations: 0 / 386.5 MB, free: 11.93 MB / 362.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.0004374/0.02121, allocations: 405.8 kB / 386.9 MB, free: 11.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.02127, allocations: 8.031 kB / 386.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.513e-05/0.02133, allocations: 8.938 kB / 386.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.608e-05/0.02142, allocations: 112.5 kB / 387 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.02143, allocations: 4.375 kB / 387 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.02144, allocations: 384 / 387 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.02157, allocations: 55.97 kB / 387.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.02158, allocations: 4.125 kB / 387.1 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.02159, allocations: 384 / 387.1 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.02159, allocations: 384 / 387.1 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.547e-05/0.02162, allocations: 37.64 kB / 387.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001126/0.02173, allocations: 108.6 kB / 387.2 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.549e-05/0.02179, allocations: 52.8 kB / 387.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.423e-05/0.02181, allocations: 33.39 kB / 387.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.6e-06/0.02182, allocations: 0 / 387.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.848e-05/0.02187, allocations: 67.16 kB / 387.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.582e-06/0.02187, allocations: 0 / 387.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002401/0.02211, allocations: 122.7 kB / 387.5 MB, free: 10.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.02216, allocations: 77.11 kB / 387.6 MB, free: 10.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.843e-05/0.02222, allocations: 142.2 kB / 387.7 MB, free: 10.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.02224, allocations: 33.83 kB / 387.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.473e-05/0.02228, allocations: 130.9 kB / 387.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.02231, allocations: 0 / 387.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.02234, allocations: 15.38 kB / 387.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.02249, allocations: 0.4922 MB / 388.4 MB, free: 9.793 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.528e-05/0.02252, allocations: 25.7 kB / 388.4 MB, free: 9.762 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.064e-05/0.02254, allocations: 25.7 kB / 388.4 MB, free: 9.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.836e-05/0.02261, allocations: 71.03 kB / 388.5 MB, free: 9.645 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.02261, allocations: 0 / 388.5 MB, free: 9.645 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.588e-05/0.0227, allocations: 93.16 kB / 388.6 MB, free: 9.535 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.506e-05/0.02274, allocations: 33.7 kB / 388.6 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.02275, allocations: 0 / 388.6 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.02277, allocations: 0 / 388.6 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.422e-06/0.02277, allocations: 0 / 388.6 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.02278, allocations: 0 / 388.6 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.298e-05/0.0228, allocations: 3.938 kB / 388.6 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.02281, allocations: 0 / 388.6 MB, free: 9.492 MB / 362.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 9.25e-05/0.0229, allocations: 182.3 kB / 388.8 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.076e-06/0.02291, allocations: 0 / 388.8 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.411e-05/0.02292, allocations: 10.98 kB / 388.8 MB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.02292, allocations: 4.031 kB / 388.8 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.02293, allocations: 0 / 388.8 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.02293, allocations: 0 / 388.8 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.779e-05/0.02301, allocations: 112.6 kB / 388.9 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.02301, allocations: 3.938 kB / 388.9 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.02301, allocations: 4 kB / 388.9 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.02301, allocations: 0 / 388.9 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.02302, allocations: 0 / 388.9 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.02302, allocations: 0 / 388.9 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.02302, allocations: 0 / 388.9 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000126/0.02315, allocations: 139.8 kB / 389.1 MB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.783e-06/0.02316, allocations: 4 kB / 389.1 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/0.02318, allocations: 3.984 kB / 389.1 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-06/0.02318, allocations: 3.938 kB / 389.1 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.493e-05/0.0232, allocations: 0 / 389.1 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.0232, allocations: 4 kB / 389.1 MB, free: 8.945 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.735e-05/0.02324, allocations: 119.2 kB / 389.2 MB, free: 8.828 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02324, allocations: 0 / 389.2 MB, free: 8.828 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002618/0.0235, allocations: 71.86 kB / 389.3 MB, free: 8.758 MB / 362.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.0009286/0.02443, allocations: 460.9 kB / 389.7 MB, free: 8.371 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001484/0.02458, allocations: 126.4 kB / 389.8 MB, free: 8.219 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.02458, allocations: 0 / 389.8 MB, free: 8.219 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.806e-05/0.02462, allocations: 88.8 kB / 389.9 MB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001173/0.02474, allocations: 4.125 kB / 389.9 MB, free: 8.105 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002666/0.02501, allocations: 125.6 kB / 390.1 MB, free: 7.945 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.306e-05/0.02505, allocations: 55.36 kB / 390.1 MB, free: 7.871 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.146e-05/0.02506, allocations: 3.938 kB / 390.1 MB, free: 7.867 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.807e-05/0.02508, allocations: 8.5 kB / 390.1 MB, free: 7.859 MB / 362.7 MB Notification: Performance of SimCode: time 1.403e-06/0.02508, allocations: 0 / 390.1 MB, free: 7.859 MB / 362.7 MB Notification: Performance of Templates: time 0.00488/0.02996, allocations: 2.267 MB / 392.4 MB, free: 5.59 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.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: 3.3796083899214864]