Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 113.3 kB / 18.45 MB, free: 4.602 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.001115/0.001115, allocations: 185.1 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.284/1.284, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.2013/0.2013, allocations: 44.18 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 59.89 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3141, allocations: 60.82 MB / 0.5195 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001618/0.3158, allocations: 0.4946 MB / 0.52 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005827/0.3164, allocations: 251.9 kB / 0.5203 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.487e-05/0.3164, allocations: 1.125 kB / 0.5203 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.408e-05/0.3165, allocations: 0 / 0.5203 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.203e-06/0.3165, allocations: 0 / 0.5203 GB, free: 3.145 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.3168, allocations: 57.33 kB / 0.5203 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.93e-05/0.3169, allocations: 4.906 kB / 0.5203 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.654e-05/0.3169, allocations: 6.422 kB / 0.5203 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.709e-05/0.3169, allocations: 4.938 kB / 0.5203 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.355e-05/0.317, allocations: 5.109 kB / 0.5203 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.308e-06/0.317, allocations: 0 / 0.5203 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.3171, allocations: 62.28 kB / 0.5204 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.084e-06/0.3172, allocations: 0 / 0.5204 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.3172, allocations: 2.078 kB / 0.5204 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.3173, allocations: 55.66 kB / 0.5204 GB, free: 3.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3173, allocations: 1.125 kB / 0.5204 GB, free: 3.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3173, allocations: 0 / 0.5204 GB, free: 3.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.3173, allocations: 0.5156 kB / 0.5204 GB, free: 3.055 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.0002672/0.3176, allocations: 362.7 kB / 0.5208 GB, free: 2.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3177, allocations: 9.062 kB / 0.5208 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.221e-05/0.3177, allocations: 2.703 kB / 0.5208 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.36e-05/0.3178, allocations: 161.7 kB / 0.521 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.3178, allocations: 384 / 0.521 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-06/0.3178, allocations: 1.625 kB / 0.521 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.621e-05/0.3179, allocations: 30.19 kB / 0.521 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3179, allocations: 192 / 0.521 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.3179, allocations: 9.156 kB / 0.521 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.3179, allocations: 0 / 0.521 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.926e-05/0.3179, allocations: 5.875 kB / 0.521 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.749e-05/0.318, allocations: 147.8 kB / 0.5211 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.191e-05/0.3181, allocations: 17.67 kB / 0.5212 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.392e-05/0.3181, allocations: 6.578 kB / 0.5212 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-06/0.3181, allocations: 0 / 0.5212 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.3181, allocations: 63.19 kB / 0.5212 GB, free: 2.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.3181, allocations: 0 / 0.5212 GB, free: 2.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001508/0.3183, allocations: 72.47 kB / 0.5213 GB, free: 2.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.3183, allocations: 78.97 kB / 0.5214 GB, free: 1.953 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.919e-05/0.3184, allocations: 89.86 kB / 0.5215 GB, free: 1.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.143e-06/0.3184, allocations: 27.69 kB / 0.5215 GB, free: 1.824 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.055e-05/0.3184, allocations: 84.08 kB / 0.5216 GB, free: 1.738 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.3184, allocations: 1.094 kB / 0.5216 GB, free: 1.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-05/0.3184, allocations: 16.89 kB / 0.5216 GB, free: 1.719 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.199e-05/0.3185, allocations: 311.7 kB / 0.5219 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-06/0.3185, allocations: 1.375 kB / 0.5219 GB, free: 1.406 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.53e-06/0.3185, allocations: 1.156 kB / 0.5219 GB, free: 1.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.286e-05/0.3185, allocations: 63.97 kB / 0.5219 GB, free: 1.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3185, allocations: 1.281 kB / 0.5219 GB, free: 1.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.59e-05/0.3186, allocations: 67.88 kB / 0.522 GB, free: 1.262 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.3186, allocations: 34.64 kB / 0.522 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3186, allocations: 4.094 kB / 0.522 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.3187, allocations: 5.719 kB / 0.522 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.3187, allocations: 0 / 0.522 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3187, allocations: 0 / 0.522 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.654e-05/0.3187, allocations: 1.812 kB / 0.522 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.3187, allocations: 1.062 kB / 0.522 GB, free: 1.223 MB / 382.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 4.689e-05/0.3188, allocations: 138.9 kB / 0.5222 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.283e-06/0.3188, allocations: 1.094 kB / 0.5222 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.778e-06/0.3188, allocations: 11.77 kB / 0.5222 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3188, allocations: 4 kB / 0.5222 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3188, allocations: 1.969 kB / 0.5222 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3188, allocations: 0 / 0.5222 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.071e-05/0.3189, allocations: 144.7 kB / 0.5223 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3189, allocations: 1.547 kB / 0.5223 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3189, allocations: 0 / 0.5223 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3189, allocations: 1.188 kB / 0.5223 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.3189, allocations: 12.67 kB / 0.5224 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3189, allocations: 1.25 kB / 0.5224 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3189, allocations: 0 / 0.5224 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.737e-05/0.319, allocations: 96.2 kB / 0.5224 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.709e-05/0.319, allocations: 79.02 kB / 0.5225 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.319, allocations: 5.797 kB / 0.5225 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.536e-06/0.319, allocations: 0 / 0.5225 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.292e-05/0.319, allocations: 1.922 kB / 0.5225 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.3191, allocations: 1.156 kB / 0.5225 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.19e-05/0.3191, allocations: 75.28 kB / 0.5226 GB, free: 0.582 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3191, allocations: 4.031 kB / 0.5226 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002622/0.3193, allocations: 25.45 kB / 0.5226 GB, free: 0.5703 MB / 382.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.0005021/0.3199, allocations: 273.2 kB / 0.5229 GB, free: 432 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.544e-05/0.3199, allocations: 66.16 kB / 0.523 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.32, allocations: 0.9688 kB / 0.523 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.886e-05/0.32, allocations: 55.3 kB / 0.523 GB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.3201, allocations: 5.188 kB / 0.523 GB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001481/0.3203, allocations: 110.7 kB / 0.5231 GB, free: 160 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.3205, allocations: 0.6764 MB / 0.5238 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.426e-06/0.3205, allocations: 7.438 kB / 0.5238 GB, free: 15.45 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3205, allocations: 0 / 0.5238 GB, free: 15.45 MB / 398.1 MB Notification: Performance of Templates: time 0.002739/0.3232, allocations: 0.9633 MB / 0.5247 GB, free: 15.33 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches