Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 168.7 kB / 24.91 MB, free: 9.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9917/0.9917, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2738/0.2738, allocations: 32.81 MB / 294.6 MB, free: 1.176 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 323.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.563e-05/2.73e-05, allocations: 3.188 kB / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001515/0.001542, allocations: 0.4894 MB / 323.7 MB, free: 9.238 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.003924, allocations: 1.3 MB / 325 MB, free: 7.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.561e-05/0.003939, allocations: 0 / 325 MB, free: 7.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.003955, allocations: 4 kB / 325 MB, free: 7.926 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.903e-06/0.003962, allocations: 0 / 325 MB, free: 7.926 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220: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.001693/0.005655, allocations: 0.5957 MB / 325.6 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.042e-05/0.005706, allocations: 0.625 kB / 325.6 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.713e-05/0.005753, allocations: 4 kB / 325.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.885e-05/0.005792, allocations: 0 / 325.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.777e-05/0.005819, allocations: 0 / 325.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.698e-06/0.005829, allocations: 0 / 325.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01237/0.0182, allocations: 3.783 MB / 329.4 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.383e-05/0.01822, allocations: 0 / 329.4 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.603e-05/0.01824, allocations: 0 / 329.4 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004042/0.01865, allocations: 204.2 kB / 329.6 MB, free: 4.352 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.01865, allocations: 0 / 329.6 MB, free: 4.352 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.01865, allocations: 4 kB / 329.6 MB, free: 4.348 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.01866, allocations: 0 / 329.6 MB, free: 4.348 MB / 298.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.0003226/0.01898, allocations: 278.1 kB / 329.8 MB, free: 4.047 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.01903, allocations: 12.03 kB / 329.9 MB, free: 4.035 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.01907, allocations: 4.938 kB / 329.9 MB, free: 4.031 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.971e-05/0.01914, allocations: 101.8 kB / 330 MB, free: 3.906 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.01915, allocations: 4.375 kB / 330 MB, free: 3.902 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.278e-06/0.01916, allocations: 384 / 330 MB, free: 3.902 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.394e-05/0.01924, allocations: 63.89 kB / 330 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.01925, allocations: 4.188 kB / 330 MB, free: 3.824 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.01926, allocations: 4.125 kB / 330 MB, free: 3.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.01927, allocations: 0 / 330 MB, free: 3.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.862e-05/0.01928, allocations: 25.7 kB / 330.1 MB, free: 3.789 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.107e-05/0.01935, allocations: 61.05 kB / 330.1 MB, free: 3.715 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.283e-05/0.01941, allocations: 44.28 kB / 330.2 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.275e-05/0.01943, allocations: 34.66 kB / 330.2 MB, free: 3.613 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-06/0.01943, allocations: 0 / 330.2 MB, free: 3.613 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.01948, allocations: 64.19 kB / 330.3 MB, free: 3.535 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.01948, allocations: 0 / 330.3 MB, free: 3.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001154/0.01959, allocations: 110.8 kB / 330.4 MB, free: 3.402 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.01963, allocations: 81.11 kB / 330.4 MB, free: 3.305 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.34e-05/0.01966, allocations: 93.84 kB / 330.5 MB, free: 3.203 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.035e-06/0.01967, allocations: 25.7 kB / 330.6 MB, free: 3.172 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.037e-05/0.01969, allocations: 84.14 kB / 330.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.0197, allocations: 4.125 kB / 330.6 MB, free: 3.082 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.968e-05/0.01972, allocations: 13.7 kB / 330.7 MB, free: 3.062 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.675e-05/0.0198, allocations: 318.8 kB / 331 MB, free: 2.742 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.41e-05/0.01981, allocations: 25.7 kB / 331 MB, free: 2.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.117e-05/0.01983, allocations: 25.7 kB / 331 MB, free: 2.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.24e-05/0.01987, allocations: 68.14 kB / 331.1 MB, free: 2.598 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.01987, allocations: 0 / 331.1 MB, free: 2.598 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.1e-05/0.01992, allocations: 89.09 kB / 331.2 MB, free: 2.492 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.01995, allocations: 29.7 kB / 331.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.01995, allocations: 4.094 kB / 331.2 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.01997, allocations: 0 / 331.2 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.677e-06/0.01997, allocations: 0 / 331.2 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.326e-06/0.01997, allocations: 4 kB / 331.2 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.367e-05/0.01999, allocations: 3.938 kB / 331.2 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.01999, allocations: 4 kB / 331.2 MB, free: 2.441 MB / 298.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 5.878e-05/0.02005, allocations: 143.5 kB / 331.4 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-06/0.02005, allocations: 0 / 331.4 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.855e-06/0.02006, allocations: 3 kB / 331.4 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.02006, allocations: 0 / 331.4 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.02007, allocations: 4 kB / 331.4 MB, free: 2.281 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.02007, allocations: 3.938 kB / 331.4 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.865e-05/0.02012, allocations: 65.84 kB / 331.4 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.92e-07/0.02012, allocations: 0 / 331.4 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.91e-07/0.02012, allocations: 0 / 331.4 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.02012, allocations: 3.984 kB / 331.4 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.318e-06/0.02012, allocations: 0 / 331.4 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.02012, allocations: 4 kB / 331.4 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.02013, allocations: 0 / 331.4 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.32e-05/0.02019, allocations: 116.5 kB / 331.6 MB, free: 2.043 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.317e-06/0.02019, allocations: 32 / 331.6 MB, free: 2.043 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.0202, allocations: 8 kB / 331.6 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.5e-06/0.02021, allocations: 0 / 331.6 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-06/0.02022, allocations: 0 / 331.6 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.02022, allocations: 0 / 331.6 MB, free: 2.035 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.74e-06/0.02022, allocations: 4.859 kB / 331.6 MB, free: 2.027 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02022, allocations: 0 / 331.6 MB, free: 2.027 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001762/0.0204, allocations: 79.73 kB / 331.6 MB, free: 1.949 MB / 298.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.0007878/0.02119, allocations: 493 kB / 332.1 MB, free: 1.586 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001054/0.02129, allocations: 115.7 kB / 332.2 MB, free: 1.445 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.0213, allocations: 4 kB / 332.2 MB, free: 1.441 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.15e-05/0.02133, allocations: 93.94 kB / 332.3 MB, free: 1.328 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.311e-05/0.02138, allocations: 7.938 kB / 332.3 MB, free: 1.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001821/0.02157, allocations: 108.7 kB / 332.5 MB, free: 1.176 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.286e-05/0.0216, allocations: 55.34 kB / 332.5 MB, free: 1.102 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.962e-06/0.0216, allocations: 0 / 332.5 MB, free: 1.102 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.02164, allocations: 55.38 kB / 332.6 MB, free: 1.047 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.02164, allocations: 0 / 332.6 MB, free: 1.047 MB / 298.7 MB Notification: Performance of Templates: time 0.003944/0.02558, allocations: 2.547 MB / 335.1 MB, free: 14.51 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.9546114350669086]