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.001326/0.001326, allocations: 112.7 kB / 18.45 MB, free: 4.598 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.001367/0.001367, allocations: 181.2 kB / 19.38 MB, free: 3.684 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.282/1.282, allocations: 222.9 MB / 243.1 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.1945/0.1945, allocations: 44.17 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 71.88 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3136, allocations: 60.82 MB / 0.5195 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001505/0.3152, allocations: 0.4884 MB / 0.52 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.3173, allocations: 1.3 MB / 0.5213 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.666e-05/0.3174, allocations: 0 / 0.5213 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.3174, allocations: 0 / 0.5213 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.444e-06/0.3174, allocations: 0.9062 kB / 0.5213 GB, free: 2.473 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.001692/0.3191, allocations: 0.5828 MB / 0.5219 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.69e-05/0.3192, allocations: 5.047 kB / 0.5219 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.017e-05/0.3193, allocations: 5.578 kB / 0.5219 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.652e-05/0.3193, allocations: 1.031 kB / 0.5219 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.143e-05/0.3193, allocations: 1.094 kB / 0.5219 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.632e-06/0.3193, allocations: 0 / 0.5219 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01211/0.3314, allocations: 2.528 MB / 0.5243 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.127e-05/0.3315, allocations: 4 kB / 0.5243 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.298e-05/0.3315, allocations: 1.281 kB / 0.5243 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003412/0.3318, allocations: 162.4 kB / 0.5245 GB, free: 1.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3319, allocations: 0 / 0.5245 GB, free: 1.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3319, allocations: 3.938 kB / 0.5245 GB, free: 1.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.3319, allocations: 1.719 kB / 0.5245 GB, free: 1.48 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.0002775/0.3322, allocations: 374.7 kB / 0.5249 GB, free: 1.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.3322, allocations: 10.66 kB / 0.5249 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.822e-05/0.3322, allocations: 0.9375 kB / 0.5249 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.523e-05/0.3323, allocations: 166.6 kB / 0.525 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.3323, allocations: 1.031 kB / 0.525 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.3323, allocations: 1.969 kB / 0.525 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.309e-05/0.3324, allocations: 40.2 kB / 0.5251 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.3324, allocations: 0.8438 kB / 0.5251 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.3324, allocations: 1.438 kB / 0.5251 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-06/0.3324, allocations: 0 / 0.5251 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.589e-05/0.3324, allocations: 1.562 kB / 0.5251 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.806e-05/0.3325, allocations: 149 kB / 0.5252 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.417e-05/0.3326, allocations: 20.91 kB / 0.5252 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.282e-05/0.3326, allocations: 6.422 kB / 0.5252 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.338e-06/0.3326, allocations: 0 / 0.5252 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.3326, allocations: 70.23 kB / 0.5253 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3326, allocations: 0 / 0.5253 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001422/0.3328, allocations: 61.5 kB / 0.5254 GB, free: 484 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.378e-05/0.3328, allocations: 83.2 kB / 0.5254 GB, free: 384 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.865e-05/0.3329, allocations: 93.86 kB / 0.5255 GB, free: 280 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.322e-06/0.3329, allocations: 25.7 kB / 0.5256 GB, free: 248 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.128e-06/0.3329, allocations: 82.14 kB / 0.5256 GB, free: 164 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.3329, allocations: 7.938 kB / 0.5256 GB, free: 156 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.273e-05/0.3329, allocations: 12.86 kB / 0.5257 GB, free: 140 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.199e-05/0.333, allocations: 312.9 kB / 0.526 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.618e-06/0.3331, allocations: 0 / 0.526 GB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.273e-06/0.3331, allocations: 5.922 kB / 0.526 GB, free: 15.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.392e-05/0.3331, allocations: 64.19 kB / 0.526 GB, free: 15.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3331, allocations: 1.406 kB / 0.526 GB, free: 15.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.499e-05/0.3332, allocations: 63.11 kB / 0.5261 GB, free: 15.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.3332, allocations: 35.91 kB / 0.5261 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3332, allocations: 1.375 kB / 0.5261 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.3333, allocations: 0 / 0.5261 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.3333, allocations: 0.6094 kB / 0.5261 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3333, allocations: 1.156 kB / 0.5261 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.718e-05/0.3333, allocations: 4.875 kB / 0.5261 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.3333, allocations: 1.094 kB / 0.5261 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.775e-05/0.3334, allocations: 135 kB / 0.5263 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.578e-06/0.3334, allocations: 5.125 kB / 0.5263 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.122e-05/0.3334, allocations: 7.922 kB / 0.5263 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3334, allocations: 3.938 kB / 0.5263 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3334, allocations: 5.125 kB / 0.5263 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.3334, allocations: 0.5625 kB / 0.5263 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.031e-05/0.3335, allocations: 149.1 kB / 0.5264 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3335, allocations: 9.344 kB / 0.5264 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.62e-07/0.3335, allocations: 0 / 0.5264 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3336, allocations: 4.453 kB / 0.5264 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.483e-06/0.3336, allocations: 2.062 kB / 0.5264 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3336, allocations: 0.75 kB / 0.5264 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3336, allocations: 0 / 0.5264 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.951e-05/0.3337, allocations: 88.39 kB / 0.5265 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.762e-05/0.3337, allocations: 83.17 kB / 0.5266 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.3337, allocations: 4.594 kB / 0.5266 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.138e-05/0.3338, allocations: 1.438 kB / 0.5266 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.189e-05/0.3338, allocations: 4.5 kB / 0.5266 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.3338, allocations: 1.719 kB / 0.5266 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.296e-05/0.3338, allocations: 75.28 kB / 0.5267 GB, free: 15 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3338, allocations: 0 / 0.5267 GB, free: 15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.3341, allocations: 69.69 kB / 0.5267 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.0007876/0.3349, allocations: 404.4 kB / 0.5271 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.211e-05/0.335, allocations: 57.94 kB / 0.5272 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.335, allocations: 0 / 0.5272 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.737e-05/0.335, allocations: 54.86 kB / 0.5272 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001159/0.3352, allocations: 3.406 kB / 0.5272 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001767/0.3354, allocations: 115 kB / 0.5274 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.3356, allocations: 0.6793 MB / 0.528 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.253e-05/0.3356, allocations: 8.812 kB / 0.528 GB, free: 13.84 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3356, allocations: 1.375 kB / 0.528 GB, free: 13.84 MB / 398.1 MB Notification: Performance of Templates: time 0.00358/0.3392, allocations: 2.038 MB / 0.53 GB, free: 13 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches