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.001156/0.001156, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.001298/0.001298, allocations: 170.5 kB / 24.91 MB, free: 9.211 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 1.007/1.007, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.2757/0.2757, allocations: 32.81 MB / 294.6 MB, free: 1.258 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.699 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.593e-05, allocations: 2.312 kB / 323.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001958/0.001984, allocations: 0.5326 MB / 323.8 MB, free: 9.164 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002627/0.004611, allocations: 1.296 MB / 325.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.893e-05/0.004629, allocations: 0 / 325.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.623e-05/0.004646, allocations: 0 / 325.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.895e-06/0.004654, allocations: 3.938 kB / 325.1 MB, free: 7.855 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.00165/0.006304, allocations: 0.5137 MB / 325.6 MB, free: 7.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.909e-05/0.006363, allocations: 4.609 kB / 325.6 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.677e-05/0.00641, allocations: 4 kB / 325.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.53e-05/0.006445, allocations: 0 / 325.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.648e-05/0.006472, allocations: 4 kB / 325.6 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.468e-06/0.006481, allocations: 3.938 kB / 325.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01326/0.01974, allocations: 3.796 MB / 329.4 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.181e-05/0.01975, allocations: 0 / 329.4 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.042e-05/0.01977, allocations: 0 / 329.4 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003311/0.0201, allocations: 215.5 kB / 329.6 MB, free: 4.328 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.02011, allocations: 4 kB / 329.6 MB, free: 4.324 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.02011, allocations: 3.938 kB / 329.6 MB, free: 4.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.02011, allocations: 0 / 329.6 MB, free: 4.32 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.0002669/0.02038, allocations: 274.2 kB / 329.9 MB, free: 4.023 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.02042, allocations: 12.03 kB / 329.9 MB, free: 4.012 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.02045, allocations: 0.9375 kB / 329.9 MB, free: 4.012 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.062e-05/0.02051, allocations: 109.8 kB / 330 MB, free: 3.879 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.888e-06/0.02052, allocations: 384 / 330 MB, free: 3.879 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-06/0.02053, allocations: 384 / 330 MB, free: 3.879 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.992e-05/0.0206, allocations: 55.97 kB / 330.1 MB, free: 3.812 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.02061, allocations: 192 / 330.1 MB, free: 3.812 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.02062, allocations: 8.109 kB / 330.1 MB, free: 3.805 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.02062, allocations: 0 / 330.1 MB, free: 3.805 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.769e-05/0.02064, allocations: 33.64 kB / 330.1 MB, free: 3.766 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.487e-05/0.0207, allocations: 57.67 kB / 330.2 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.652e-05/0.02075, allocations: 52.3 kB / 330.2 MB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.759e-05/0.02077, allocations: 30.56 kB / 330.2 MB, free: 3.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-06/0.02077, allocations: 0 / 330.2 MB, free: 3.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.02081, allocations: 64.33 kB / 330.3 MB, free: 3.512 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.01e-07/0.02081, allocations: 0 / 330.3 MB, free: 3.512 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001129/0.02092, allocations: 118.7 kB / 330.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.02096, allocations: 77.11 kB / 330.5 MB, free: 3.277 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.153e-05/0.02099, allocations: 93.86 kB / 330.6 MB, free: 3.176 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.928e-06/0.021, allocations: 25.7 kB / 330.6 MB, free: 3.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.973e-05/0.02102, allocations: 88.25 kB / 330.7 MB, free: 3.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.02103, allocations: 0 / 330.7 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.119e-05/0.02105, allocations: 13.72 kB / 330.7 MB, free: 3.035 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.58e-05/0.02113, allocations: 314.8 kB / 331 MB, free: 2.719 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.523e-05/0.02114, allocations: 29.7 kB / 331 MB, free: 2.684 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.353e-05/0.02116, allocations: 33.69 kB / 331.1 MB, free: 2.645 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.418e-05/0.0212, allocations: 60.27 kB / 331.1 MB, free: 2.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.0212, allocations: 3.938 kB / 331.1 MB, free: 2.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.195e-05/0.02126, allocations: 85.11 kB / 331.2 MB, free: 2.465 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.02129, allocations: 37.78 kB / 331.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.02129, allocations: 0 / 331.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.0213, allocations: 4 kB / 331.3 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-06/0.0213, allocations: 0 / 331.3 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.255e-06/0.02131, allocations: 0 / 331.3 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.76e-05/0.02132, allocations: 3.938 kB / 331.3 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-06/0.02133, allocations: 0 / 331.3 MB, free: 2.414 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 6.073e-05/0.02139, allocations: 135.5 kB / 331.4 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-06/0.02139, allocations: 0 / 331.4 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.979e-06/0.0214, allocations: 3 kB / 331.4 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.02141, allocations: 8 kB / 331.4 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.02141, allocations: 3.984 kB / 331.4 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.02141, allocations: 0 / 331.4 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.597e-05/0.02146, allocations: 61.84 kB / 331.5 MB, free: 2.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-07/0.02146, allocations: 0 / 331.5 MB, free: 2.176 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-07/0.02146, allocations: 0 / 331.5 MB, free: 2.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.02146, allocations: 4 kB / 331.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.967e-06/0.02147, allocations: 0 / 331.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.02147, allocations: 3.938 kB / 331.5 MB, free: 2.168 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.02147, allocations: 0 / 331.5 MB, free: 2.168 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.065e-05/0.02154, allocations: 116.5 kB / 331.6 MB, free: 2.023 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.785e-06/0.02154, allocations: 12.02 kB / 331.6 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.02e-05/0.02156, allocations: 0 / 331.6 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.09e-06/0.02156, allocations: 3.938 kB / 331.6 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.857e-06/0.02157, allocations: 0 / 331.6 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-06/0.02157, allocations: 0 / 331.6 MB, free: 2.008 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.124e-06/0.02158, allocations: 12.84 kB / 331.6 MB, free: 1.992 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02158, allocations: 0 / 331.6 MB, free: 1.992 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001671/0.02174, allocations: 63.88 kB / 331.7 MB, free: 1.93 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.0008293/0.02257, allocations: 490.1 kB / 332.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.386e-05/0.02267, allocations: 123.6 kB / 332.3 MB, free: 1.418 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.02267, allocations: 0 / 332.3 MB, free: 1.418 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.852e-05/0.0227, allocations: 85.97 kB / 332.4 MB, free: 1.312 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.661e-05/0.02276, allocations: 6.906 kB / 332.4 MB, free: 1.309 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001615/0.02292, allocations: 120.7 kB / 332.5 MB, free: 1.156 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.841e-05/0.02295, allocations: 55.36 kB / 332.5 MB, free: 1.082 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.111e-06/0.02295, allocations: 7.938 kB / 332.6 MB, free: 1.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/0.02299, allocations: 51.38 kB / 332.6 MB, free: 1.02 MB / 298.7 MB Notification: Performance of SimCode: time 6.52e-07/0.02299, allocations: 0 / 332.6 MB, free: 1.02 MB / 298.7 MB Notification: Performance of Templates: time 0.004111/0.0271, allocations: 2.545 MB / 335.1 MB, free: 14.48 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 -s gbode -gbm=radauIIA3 -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.901809871662408]