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.001203/0.001203, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001318/0.001318, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.44/1.44, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2309/0.2309, allocations: 44.2 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 63.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3821, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001737/0.3839, allocations: 0.4899 MB / 0.5193 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.3864, allocations: 1.303 MB / 0.5206 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.7e-05/0.3864, allocations: 1.094 kB / 0.5206 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.918e-05/0.3864, allocations: 0 / 0.5206 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.3865, allocations: 0 / 0.5206 GB, free: 2.469 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.001411/0.3879, allocations: 0.5703 MB / 0.5212 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.641e-05/0.3879, allocations: 6.25 kB / 0.5212 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.243e-05/0.388, allocations: 6.188 kB / 0.5212 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.652e-05/0.388, allocations: 1.281 kB / 0.5212 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.732e-05/0.388, allocations: 4 kB / 0.5212 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.719e-06/0.388, allocations: 0 / 0.5212 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01202/0.4, allocations: 2.53 MB / 0.5237 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.251e-05/0.4001, allocations: 0 / 0.5237 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.882e-05/0.4001, allocations: 0 / 0.5237 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004125/0.4005, allocations: 163.8 kB / 0.5238 GB, free: 1.492 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4005, allocations: 0 / 0.5238 GB, free: 1.492 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.4006, allocations: 0 / 0.5238 GB, free: 1.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.4006, allocations: 4 kB / 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.0003408/0.4009, allocations: 384.4 kB / 0.5242 GB, free: 1.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.401, allocations: 13.62 kB / 0.5242 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.305e-05/0.401, allocations: 5.5 kB / 0.5242 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.008e-05/0.4011, allocations: 161.9 kB / 0.5244 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.4011, allocations: 1.688 kB / 0.5244 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.858e-06/0.4011, allocations: 2.5 kB / 0.5244 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.946e-05/0.4012, allocations: 31.77 kB / 0.5244 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.4012, allocations: 0 / 0.5244 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.4012, allocations: 5.125 kB / 0.5244 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.4012, allocations: 0 / 0.5244 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.017e-05/0.4013, allocations: 2.422 kB / 0.5244 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001022/0.4014, allocations: 144.6 kB / 0.5245 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.55e-05/0.4014, allocations: 24.55 kB / 0.5246 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.335e-05/0.4014, allocations: 6.297 kB / 0.5246 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.398e-06/0.4014, allocations: 0.9062 kB / 0.5246 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.4015, allocations: 66.22 kB / 0.5246 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.4015, allocations: 0 / 0.5246 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001515/0.4016, allocations: 61.61 kB / 0.5247 GB, free: 488 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.4017, allocations: 91.06 kB / 0.5248 GB, free: 380 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.844e-05/0.4017, allocations: 90.42 kB / 0.5249 GB, free: 280 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.523e-06/0.4017, allocations: 25.7 kB / 0.5249 GB, free: 248 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.012e-05/0.4017, allocations: 80.14 kB / 0.525 GB, free: 164 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.4018, allocations: 1.562 kB / 0.525 GB, free: 164 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.4018, allocations: 19.47 kB / 0.525 GB, free: 140 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.4019, allocations: 313.1 kB / 0.5253 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.262e-05/0.4019, allocations: 1.125 kB / 0.5253 GB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.241e-06/0.4019, allocations: 1.75 kB / 0.5253 GB, free: 15.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.879e-05/0.402, allocations: 63.97 kB / 0.5254 GB, free: 15.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.402, allocations: 0 / 0.5254 GB, free: 15.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.627e-05/0.4021, allocations: 60 kB / 0.5254 GB, free: 15.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/0.4021, allocations: 40.67 kB / 0.5254 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.4021, allocations: 4.547 kB / 0.5255 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.4021, allocations: 1.656 kB / 0.5255 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.4021, allocations: 0 / 0.5255 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.4021, allocations: 0.5156 kB / 0.5255 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.899e-05/0.4022, allocations: 7.922 kB / 0.5255 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.4022, allocations: 2.438 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 7.079e-05/0.4023, allocations: 134.2 kB / 0.5256 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.155e-05/0.4023, allocations: 9.312 kB / 0.5256 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.086e-05/0.4023, allocations: 11.64 kB / 0.5256 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.4023, allocations: 2.234 kB / 0.5256 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4023, allocations: 0 / 0.5256 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.4023, allocations: 0 / 0.5256 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.033e-05/0.4024, allocations: 145.1 kB / 0.5258 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.4024, allocations: 0.7969 kB / 0.5258 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4024, allocations: 1.406 kB / 0.5258 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.4024, allocations: 3.938 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.4024, allocations: 1.25 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4024, allocations: 0.7969 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4025, allocations: 4 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.941e-05/0.4026, allocations: 97.42 kB / 0.5259 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.378e-05/0.4026, allocations: 81.56 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.4026, allocations: 2.5 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.225e-05/0.4026, allocations: 0 / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.275e-05/0.4027, allocations: 6.016 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.4027, allocations: 1.375 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.624e-05/0.4027, allocations: 79.31 kB / 0.526 GB, free: 14.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4027, allocations: 0 / 0.526 GB, free: 14.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002944/0.403, allocations: 68.45 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.0008289/0.4038, allocations: 405.3 kB / 0.5265 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.711e-05/0.4039, allocations: 62.27 kB / 0.5265 GB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4039, allocations: 0 / 0.5265 GB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.041e-05/0.404, allocations: 60.28 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.0001319/0.4041, allocations: 1.938 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.000249/0.4044, allocations: 77.11 kB / 0.5267 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.4047, allocations: 0.6793 MB / 0.5273 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.053e-06/0.4047, allocations: 0 / 0.5273 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.776e-05/0.4048, allocations: 10.19 kB / 0.5273 GB, free: 13.87 MB / 398.1 MB Notification: Performance of SimCode: time 1.9e-07/0.4048, allocations: 0 / 0.5273 GB, free: 13.87 MB / 398.1 MB Notification: Performance of Templates: time 0.005558/0.4103, allocations: 2.141 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