Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007907/0.0007907, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009431/0.0009432, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1771/0.1771, allocations: 46.17 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002585, allocations: 4 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1006, allocations: 63.57 MB / 483.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0004896/0.1012, allocations: 207 kB / 483.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005292/0.1017, allocations: 250 kB / 483.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.344e-06/0.1017, allocations: 0 / 483.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.117e-05/0.1018, allocations: 3.938 kB / 483.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.727e-06/0.1018, allocations: 4 kB / 483.6 MB, free: 3.598 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453: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.0002313/0.102, allocations: 35.97 kB / 483.7 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.869e-05/0.102, allocations: 0 / 483.7 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.399e-05/0.1021, allocations: 4 kB / 483.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.409e-05/0.1021, allocations: 11.86 kB / 483.7 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.021e-05/0.1021, allocations: 3.984 kB / 483.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-06/0.1021, allocations: 0 / 483.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.1023, allocations: 59.95 kB / 483.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.52e-06/0.1023, allocations: 0 / 483.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.857e-05/0.1023, allocations: 29.7 kB / 483.8 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.1024, allocations: 55.86 kB / 483.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1024, allocations: 8 kB / 483.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1024, allocations: 0 / 483.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.765e-06/0.1024, allocations: 0 / 483.8 MB, free: 3.387 MB / 350.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.0003211/0.1028, allocations: 353.2 kB / 484.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.1028, allocations: 12.88 kB / 484.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.662e-05/0.1028, allocations: 30.75 kB / 484.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.919e-05/0.1029, allocations: 0.9375 kB / 484.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.173e-05/0.1029, allocations: 160.4 kB / 484.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.146e-06/0.103, allocations: 384 / 484.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.754e-06/0.103, allocations: 8.375 kB / 484.4 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.605e-05/0.103, allocations: 26.27 kB / 484.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.1031, allocations: 3.938 kB / 484.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-06/0.1031, allocations: 0 / 484.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.1031, allocations: 4 kB / 484.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.502e-05/0.1031, allocations: 7.922 kB / 484.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001154/0.1032, allocations: 145.7 kB / 484.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.491e-05/0.1033, allocations: 18.61 kB / 484.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.163e-05/0.1033, allocations: 8.859 kB / 484.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.536e-06/0.1033, allocations: 0 / 484.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.1033, allocations: 56.27 kB / 484.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1033, allocations: 0 / 484.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001359/0.1035, allocations: 75.33 kB / 484.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.1035, allocations: 81.11 kB / 484.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.018e-05/0.1036, allocations: 89.86 kB / 484.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.826e-05/0.1036, allocations: 29.83 kB / 484.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.157e-05/0.1037, allocations: 80.14 kB / 485 MB, free: 1.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.379e-05/0.1037, allocations: 0 / 485 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.955e-05/0.1037, allocations: 9.719 kB / 485 MB, free: 1.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1039, allocations: 314.8 kB / 485.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.656e-06/0.1039, allocations: 4 kB / 485.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-06/0.1039, allocations: 0 / 485.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.538e-05/0.1039, allocations: 64.27 kB / 485.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.1039, allocations: 4.062 kB / 485.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.833e-05/0.104, allocations: 63.28 kB / 485.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.104, allocations: 37.69 kB / 485.5 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1041, allocations: 3.938 kB / 485.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.986e-06/0.1041, allocations: 0 / 485.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.1041, allocations: 0 / 485.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.1041, allocations: 0 / 485.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.22e-05/0.1041, allocations: 0 / 485.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-06/0.1041, allocations: 4 kB / 485.5 MB, free: 1.441 MB / 350.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.08e-05/0.1042, allocations: 143.5 kB / 485.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.532e-06/0.1042, allocations: 0 / 485.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.297e-06/0.1042, allocations: 15.05 kB / 485.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1042, allocations: 0 / 485.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1042, allocations: 0 / 485.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1042, allocations: 3.984 kB / 485.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.619e-05/0.1043, allocations: 141.7 kB / 485.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1043, allocations: 0 / 485.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.004e-06/0.1043, allocations: 4 kB / 485.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.1043, allocations: 4 kB / 485.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.1043, allocations: 7.938 kB / 485.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1043, allocations: 0 / 485.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1044, allocations: 0 / 485.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.672e-05/0.1044, allocations: 94.77 kB / 485.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.581e-05/0.1045, allocations: 77.39 kB / 486 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.128e-05/0.1045, allocations: 3.938 kB / 486 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.335e-06/0.1046, allocations: 0 / 486 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.602e-05/0.1046, allocations: 7.984 kB / 486 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.1046, allocations: 4.031 kB / 486 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.162e-05/0.1046, allocations: 75.28 kB / 486.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1046, allocations: 0 / 486.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001997/0.1048, allocations: 24 kB / 486.1 MB, free: 0.7422 MB / 350.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.0006707/0.1055, allocations: 0.8084 MB / 486.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.133e-05/0.1056, allocations: 67.41 kB / 487 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1056, allocations: 0 / 487 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.774e-05/0.1056, allocations: 59.39 kB / 487 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001081/0.1057, allocations: 0 / 487 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002301/0.106, allocations: 112.4 kB / 487.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.1063, allocations: 0.677 MB / 487.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.298e-06/0.1064, allocations: 0 / 487.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.017e-06/0.1064, allocations: 7.562 kB / 487.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1064, allocations: 4 kB / 487.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1465/0.2529, allocations: 1.4 MB / 489.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002294/0.2532, allocations: 228.4 kB / 489.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.932/2.185, allocations: 3.938 kB / 489.4 MB, free: 13.39 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches