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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 108.8 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00194/0.00194, allocations: 184.8 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2204/0.2204, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 59.89 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4336/0.4351, allocations: 60.83 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001685/0.4368, allocations: 0.4894 MB / 0.5193 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.4392, allocations: 1.302 MB / 0.5206 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.58e-05/0.4392, allocations: 5 kB / 0.5206 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.609e-05/0.4393, allocations: 0 / 0.5206 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-06/0.4393, allocations: 0 / 0.5206 GB, free: 2.465 MB / 382.1 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.001968/0.4412, allocations: 0.5704 MB / 0.5212 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.144e-05/0.4413, allocations: 2.188 kB / 0.5212 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.465e-05/0.4414, allocations: 10.02 kB / 0.5212 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.58e-05/0.4414, allocations: 1.219 kB / 0.5212 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.437e-05/0.4414, allocations: 8 kB / 0.5212 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.041e-06/0.4414, allocations: 0 / 0.5212 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01303/0.4545, allocations: 2.523 MB / 0.5237 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.4545, allocations: 0 / 0.5237 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.4545, allocations: 0 / 0.5237 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004482/0.455, allocations: 162.3 kB / 0.5238 GB, free: 1.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.455, allocations: 1.375 kB / 0.5238 GB, free: 1.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.455, allocations: 0 / 0.5238 GB, free: 1.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.455, allocations: 0 / 0.5238 GB, free: 1.488 MB / 382.1 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.0003806/0.4554, allocations: 388.8 kB / 0.5242 GB, free: 1.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.4555, allocations: 9.625 kB / 0.5242 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.732e-05/0.4555, allocations: 0.9375 kB / 0.5242 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.938e-05/0.4556, allocations: 171.1 kB / 0.5244 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.4556, allocations: 384 / 0.5244 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.4556, allocations: 1.75 kB / 0.5244 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.734e-05/0.4557, allocations: 32.52 kB / 0.5244 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.4557, allocations: 1.375 kB / 0.5244 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.4557, allocations: 4 kB / 0.5244 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.4558, allocations: 0 / 0.5244 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.058e-05/0.4558, allocations: 2.125 kB / 0.5244 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001015/0.4559, allocations: 148.4 kB / 0.5245 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.524e-05/0.4559, allocations: 22.16 kB / 0.5246 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.249e-05/0.4559, allocations: 4.859 kB / 0.5246 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.456, allocations: 1.984 kB / 0.5246 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.456, allocations: 66.23 kB / 0.5246 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.456, allocations: 0 / 0.5246 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000162/0.4562, allocations: 64.25 kB / 0.5247 GB, free: 480 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.4562, allocations: 83.03 kB / 0.5248 GB, free: 380 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.108e-05/0.4562, allocations: 94.5 kB / 0.5249 GB, free: 276 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.773e-06/0.4562, allocations: 27.08 kB / 0.5249 GB, free: 244 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.001e-05/0.4563, allocations: 80.14 kB / 0.525 GB, free: 160 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.4563, allocations: 3.938 kB / 0.525 GB, free: 156 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.469e-05/0.4563, allocations: 17.86 kB / 0.525 GB, free: 136 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.3e-05/0.4564, allocations: 312.2 kB / 0.5253 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.869e-06/0.4564, allocations: 0 / 0.5253 GB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.963e-06/0.4564, allocations: 2.078 kB / 0.5253 GB, free: 15.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.777e-05/0.4565, allocations: 63.81 kB / 0.5254 GB, free: 15.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4565, allocations: 1.375 kB / 0.5254 GB, free: 15.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.973e-05/0.4566, allocations: 60.11 kB / 0.5254 GB, free: 15.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.4566, allocations: 35.8 kB / 0.5254 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.4566, allocations: 4.609 kB / 0.5254 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.4567, allocations: 0 / 0.5254 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.617e-06/0.4567, allocations: 9.922 kB / 0.5255 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.4567, allocations: 0 / 0.5255 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.4567, allocations: 0 / 0.5255 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.4567, allocations: 1.938 kB / 0.5255 GB, free: 15.64 MB / 398.1 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 8.26e-05/0.4568, allocations: 139 kB / 0.5256 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.4568, allocations: 4.5 kB / 0.5256 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.294e-05/0.4568, allocations: 9.062 kB / 0.5256 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.4568, allocations: 4 kB / 0.5256 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4569, allocations: 0 / 0.5256 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.4569, allocations: 5.875 kB / 0.5256 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.928e-05/0.457, allocations: 144.9 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.457, allocations: 0.6562 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.457, allocations: 0 / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.457, allocations: 5.312 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.457, allocations: 0.6562 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.457, allocations: 1.375 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.457, allocations: 0 / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.563e-05/0.4571, allocations: 92.84 kB / 0.5259 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.705e-05/0.4572, allocations: 85.64 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.4572, allocations: 1.938 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.176e-05/0.4572, allocations: 1.375 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.464e-05/0.4572, allocations: 4.547 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.4572, allocations: 1.375 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.301e-05/0.4572, allocations: 76.08 kB / 0.526 GB, free: 15 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4573, allocations: 4.031 kB / 0.526 GB, free: 14.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.4576, allocations: 68.25 kB / 0.5261 GB, free: 14.98 MB / 398.1 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.0009014/0.4585, allocations: 406.3 kB / 0.5265 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001008/0.4586, allocations: 62.11 kB / 0.5265 GB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4586, allocations: 5.062 kB / 0.5265 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.195e-05/0.4586, allocations: 54.88 kB / 0.5266 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.4588, allocations: 2.859 kB / 0.5266 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002097/0.459, allocations: 85.83 kB / 0.5267 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.4592, allocations: 0.6792 MB / 0.5273 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.374e-06/0.4592, allocations: 0 / 0.5273 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.909e-05/0.4592, allocations: 10.34 kB / 0.5273 GB, free: 13.86 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4592, allocations: 0 / 0.5273 GB, free: 13.86 MB / 398.1 MB Notification: Performance of Templates: time 0.005246/0.4645, allocations: 2.142 MB / 0.5294 GB, free: 12.95 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches