Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001308/0.001308, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001352/0.001352, allocations: 170.8 kB / 24.82 MB, free: 9.262 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.014/1.014, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2996/0.2996, allocations: 34.26 MB / 296.1 MB, free: 0.7305 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.314e-06/2.314e-06, allocations: 0 / 378.5 MB, free: 2.426 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.579e-05/2.81e-05, allocations: 2.312 kB / 378.5 MB, free: 2.422 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.00115/0.001178, allocations: 492.2 kB / 379 MB, free: 1.941 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002401/0.003578, allocations: 1.273 MB / 380.2 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.85e-05/0.003607, allocations: 7.938 kB / 380.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.168e-05/0.003629, allocations: 4 kB / 380.2 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.574e-06/0.003636, allocations: 0 / 380.2 MB, free: 0.6484 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:4:3-219: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.001727/0.005363, allocations: 0.5879 MB / 380.8 MB, free: 60 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.972e-05/0.005423, allocations: 0 / 380.8 MB, free: 60 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.025e-05/0.005473, allocations: 8 kB / 380.8 MB, free: 52 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.901e-05/0.005512, allocations: 0 / 380.8 MB, free: 52 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.265e-05/0.005545, allocations: 3.938 kB / 380.8 MB, free: 48 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.137e-05/0.005556, allocations: 4 kB / 380.8 MB, free: 44 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009253/0.01481, allocations: 3.734 MB / 384.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.337e-05/0.01482, allocations: 0 / 384.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.174e-05/0.01484, allocations: 0 / 384.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003028/0.01515, allocations: 207.5 kB / 384.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.01515, allocations: 0 / 384.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.01515, allocations: 0 / 384.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.01516, allocations: 4 kB / 384.8 MB, free: 13.07 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.0003461/0.0155, allocations: 405.8 kB / 385.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.01556, allocations: 16.03 kB / 385.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.645e-05/0.01559, allocations: 0.9375 kB / 385.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.011e-05/0.01566, allocations: 104.6 kB / 385.3 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.01568, allocations: 384 / 385.3 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.375e-06/0.01569, allocations: 4.375 kB / 385.3 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.036e-05/0.01578, allocations: 55.95 kB / 385.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.01579, allocations: 192 / 385.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.0158, allocations: 8.062 kB / 385.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.0158, allocations: 4 kB / 385.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.63e-05/0.01582, allocations: 25.7 kB / 385.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.95e-05/0.01591, allocations: 97.27 kB / 385.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.542e-05/0.01595, allocations: 52.75 kB / 385.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.114e-05/0.01598, allocations: 37.39 kB / 385.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.318e-06/0.01598, allocations: 4.094 kB / 385.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.01603, allocations: 67.02 kB / 385.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.01603, allocations: 0 / 385.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001713/0.0162, allocations: 114.8 kB / 385.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.01624, allocations: 81.11 kB / 385.8 MB, free: 11.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.948e-05/0.01629, allocations: 146.2 kB / 386 MB, free: 11.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.0163, allocations: 33.81 kB / 386 MB, free: 11.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.289e-05/0.01633, allocations: 126.9 kB / 386.1 MB, free: 11.49 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.01635, allocations: 3.938 kB / 386.1 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.01637, allocations: 19.38 kB / 386.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.0165, allocations: 496.1 kB / 386.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.85e-05/0.01652, allocations: 25.7 kB / 386.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.488e-05/0.01653, allocations: 29.7 kB / 386.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.68e-05/0.01658, allocations: 63.03 kB / 386.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01658, allocations: 0 / 386.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.183e-05/0.01665, allocations: 89.16 kB / 386.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.01668, allocations: 37.73 kB / 386.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.01669, allocations: 0 / 386.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.0167, allocations: 0 / 386.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.296e-06/0.0167, allocations: 4 kB / 386.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-06/0.01671, allocations: 0 / 386.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.267e-05/0.01672, allocations: 3.938 kB / 386.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.01673, allocations: 4 kB / 386.9 MB, free: 10.66 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 7.448e-05/0.0168, allocations: 186.3 kB / 387.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.589e-06/0.01681, allocations: 4 kB / 387.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.392e-05/0.01682, allocations: 3 kB / 387.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.01682, allocations: 4 kB / 387.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.01682, allocations: 0 / 387.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.01683, allocations: 7.922 kB / 387.1 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.774e-05/0.01689, allocations: 97.25 kB / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.91e-07/0.01689, allocations: 0 / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.623e-06/0.01689, allocations: 3.938 kB / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.01689, allocations: 3.984 kB / 387.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.829e-06/0.0169, allocations: 0 / 387.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.9e-07/0.0169, allocations: 0 / 387.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.71e-07/0.0169, allocations: 0 / 387.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.553e-05/0.01699, allocations: 131.8 kB / 387.3 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.683e-06/0.017, allocations: 7.938 kB / 387.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/0.01701, allocations: 0 / 387.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.779e-06/0.01702, allocations: 0 / 387.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.252e-05/0.01703, allocations: 4 kB / 387.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.01703, allocations: 4 kB / 387.3 MB, free: 10.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.834e-05/0.01707, allocations: 119.2 kB / 387.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01707, allocations: 0 / 387.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001828/0.01725, allocations: 67.86 kB / 387.5 MB, free: 9.949 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.0006948/0.01795, allocations: 452.5 kB / 388 MB, free: 9.594 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001092/0.01806, allocations: 134.3 kB / 388.1 MB, free: 9.434 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.01806, allocations: 4 kB / 388.1 MB, free: 9.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.107e-05/0.01809, allocations: 84.8 kB / 388.2 MB, free: 9.324 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.303e-05/0.01818, allocations: 8.125 kB / 388.2 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000174/0.01836, allocations: 121.6 kB / 388.3 MB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.179e-05/0.01839, allocations: 51.36 kB / 388.4 MB, free: 9.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.56e-06/0.0184, allocations: 0 / 388.4 MB, free: 9.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.275e-05/0.01844, allocations: 74.2 kB / 388.4 MB, free: 9.016 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01844, allocations: 0 / 388.4 MB, free: 9.016 MB / 362.7 MB Notification: Performance of Templates: time 0.004035/0.02247, allocations: 2.569 MB / 391 MB, free: 6.449 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.312447060830891]