Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009789/0.0009789, allocations: 202.1 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000741/0.000741, allocations: 92 kB / 299.8 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3081/0.3081, allocations: 45.01 MB / 397 MB, free: 31.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002419, allocations: 11.98 kB / 470.8 MB, free: 7.098 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2958, allocations: 63.09 MB / 0.5214 GB, free: 38.44 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0005336/0.2964, allocations: 208.5 kB / 0.5216 GB, free: 38.3 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.2986, allocations: 2.947 MB / 0.5244 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.2e-05/0.2986, allocations: 4 kB / 0.5244 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.123e-05/0.2986, allocations: 0 / 0.5244 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.2987, allocations: 0 / 0.5244 GB, free: 35.49 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/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.0009834/0.2997, allocations: 449.3 kB / 0.5249 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.18e-05/0.2997, allocations: 2.562 kB / 0.5249 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.966e-05/0.2998, allocations: 0 / 0.5249 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.942e-05/0.2998, allocations: 10.55 kB / 0.5249 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.46e-05/0.2998, allocations: 0 / 0.5249 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.612e-06/0.2998, allocations: 0 / 0.5249 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03317/0.333, allocations: 2.36 MB / 0.5272 GB, free: 34.35 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.693e-05/0.333, allocations: 3.938 kB / 0.5272 GB, free: 34.35 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.516e-05/0.3331, allocations: 36.95 kB / 0.5272 GB, free: 34.31 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003245/0.3334, allocations: 160.6 kB / 0.5274 GB, free: 34.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3334, allocations: 0 / 0.5274 GB, free: 34.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3335, allocations: 0 / 0.5274 GB, free: 34.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.698e-06/0.3335, allocations: 0 / 0.5274 GB, free: 34.26 MB / 378.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.0002664/0.3337, allocations: 384.9 kB / 0.5277 GB, free: 33.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3338, allocations: 8.844 kB / 0.5277 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.938e-05/0.3338, allocations: 7.938 kB / 0.5278 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.852e-05/0.3339, allocations: 167.7 kB / 0.5279 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.3339, allocations: 384 / 0.5279 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.106e-06/0.3339, allocations: 384 / 0.5279 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.193e-05/0.334, allocations: 36.67 kB / 0.528 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.334, allocations: 0 / 0.528 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.334, allocations: 0 / 0.528 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.334, allocations: 0 / 0.528 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.648e-05/0.3341, allocations: 2.812 kB / 0.528 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.67e-05/0.3341, allocations: 149.1 kB / 0.5281 GB, free: 33.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.255e-05/0.3342, allocations: 21.48 kB / 0.5281 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.467e-05/0.3342, allocations: 4.859 kB / 0.5281 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-06/0.3342, allocations: 2.875 kB / 0.5281 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.3343, allocations: 60.2 kB / 0.5282 GB, free: 33.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.844e-06/0.3343, allocations: 7.922 kB / 0.5282 GB, free: 33.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001675/0.3344, allocations: 63.48 kB / 0.5283 GB, free: 33.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.3345, allocations: 85.23 kB / 0.5283 GB, free: 33.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.57e-05/0.3345, allocations: 89.86 kB / 0.5284 GB, free: 33.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.634e-06/0.3345, allocations: 25.7 kB / 0.5284 GB, free: 33.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.45e-05/0.3345, allocations: 84.12 kB / 0.5285 GB, free: 32.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.3346, allocations: 3.188 kB / 0.5285 GB, free: 32.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-06/0.3346, allocations: 0 / 0.5285 GB, free: 32.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.377e-05/0.3346, allocations: 318 kB / 0.5288 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.155e-06/0.3346, allocations: 0 / 0.5288 GB, free: 32.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-06/0.3347, allocations: 6.812 kB / 0.5288 GB, free: 32.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.907e-05/0.3347, allocations: 62.92 kB / 0.5289 GB, free: 32.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.3347, allocations: 0 / 0.5289 GB, free: 32.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.049e-05/0.3348, allocations: 64.89 kB / 0.529 GB, free: 32.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.3348, allocations: 35.39 kB / 0.529 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.3348, allocations: 4 kB / 0.529 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.3348, allocations: 0 / 0.529 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.3348, allocations: 0 / 0.529 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.3348, allocations: 3.062 kB / 0.529 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.607e-05/0.3349, allocations: 4.094 kB / 0.529 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.3349, allocations: 0 / 0.529 GB, free: 32.42 MB / 378.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 4.206e-05/0.3349, allocations: 138.5 kB / 0.5291 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.624e-06/0.3349, allocations: 7.312 kB / 0.5291 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.223e-06/0.3349, allocations: 6.719 kB / 0.5291 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.42e-07/0.3349, allocations: 0 / 0.5291 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3349, allocations: 2.969 kB / 0.5291 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.335, allocations: 0 / 0.5291 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.897e-05/0.335, allocations: 153.1 kB / 0.5293 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.335, allocations: 4 kB / 0.5293 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.192e-06/0.335, allocations: 0 / 0.5293 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.335, allocations: 10.69 kB / 0.5293 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.335, allocations: 0 / 0.5293 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.335, allocations: 0 / 0.5293 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.335, allocations: 0 / 0.5293 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.995e-05/0.3351, allocations: 89.59 kB / 0.5294 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.418e-05/0.3351, allocations: 81.05 kB / 0.5295 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.3352, allocations: 7.125 kB / 0.5295 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.227e-06/0.3352, allocations: 0 / 0.5295 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.358e-06/0.3352, allocations: 0 / 0.5295 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3352, allocations: 0 / 0.5295 GB, free: 31.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.183e-05/0.3352, allocations: 75.28 kB / 0.5296 GB, free: 31.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3352, allocations: 3.062 kB / 0.5296 GB, free: 31.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003148/0.3355, allocations: 71.42 kB / 0.5296 GB, free: 31.77 MB / 378.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.0008157/0.3364, allocations: 439.8 kB / 0.53 GB, free: 31.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.328e-05/0.3364, allocations: 61 kB / 0.5301 GB, free: 31.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3365, allocations: 0 / 0.5301 GB, free: 31.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.237e-05/0.3365, allocations: 57.22 kB / 0.5302 GB, free: 31.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001132/0.3366, allocations: 3.031 kB / 0.5302 GB, free: 31.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001468/0.3368, allocations: 84.52 kB / 0.5302 GB, free: 31.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.832e-05/0.3369, allocations: 0.6725 MB / 0.5309 GB, free: 30.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.919e-06/0.3369, allocations: 0 / 0.5309 GB, free: 30.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.807e-06/0.3369, allocations: 10.31 kB / 0.5309 GB, free: 30.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3369, allocations: 0 / 0.5309 GB, free: 30.62 MB / 378.7 MB Notification: Performance of Templates: time 0.003891/0.3408, allocations: 2.124 MB / 0.533 GB, free: 30.4 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches