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: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 109.5 kB / 17.78 MB, free: 5.289 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.001592/0.001592, allocations: 188 kB / 18.71 MB, free: 4.371 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.409/1.409, 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.2156/0.2156, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.91 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3761/0.3774, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001514/0.3789, allocations: 479.5 kB / 0.5189 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005936/0.3795, allocations: 262.2 kB / 0.5191 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.558e-05/0.3796, allocations: 1.531 kB / 0.5191 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.68e-05/0.3796, allocations: 0 / 0.5191 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.631e-06/0.3796, allocations: 0 / 0.5191 GB, free: 2.848 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.0003329/0.3799, allocations: 49.08 kB / 0.5192 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.578e-05/0.38, allocations: 1.641 kB / 0.5192 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.086e-05/0.3801, allocations: 5.797 kB / 0.5192 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.596e-05/0.3801, allocations: 5.141 kB / 0.5192 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.075e-05/0.3801, allocations: 4 kB / 0.5192 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.666e-06/0.3801, allocations: 1.5 kB / 0.5192 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.3803, allocations: 64.94 kB / 0.5192 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-06/0.3803, allocations: 1.438 kB / 0.5192 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.949e-05/0.3803, allocations: 3.938 kB / 0.5192 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.3804, allocations: 54 kB / 0.5193 GB, free: 2.766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3805, allocations: 4 kB / 0.5193 GB, free: 2.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3805, allocations: 0 / 0.5193 GB, free: 2.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3805, allocations: 0.7969 kB / 0.5193 GB, free: 2.762 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.0002474/0.3807, allocations: 358.5 kB / 0.5196 GB, free: 2.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.3808, allocations: 14 kB / 0.5196 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.553e-05/0.3808, allocations: 30.75 kB / 0.5197 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.458e-05/0.3808, allocations: 2.938 kB / 0.5197 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.979e-05/0.3809, allocations: 161.1 kB / 0.5198 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.3809, allocations: 384 / 0.5198 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.183e-06/0.3809, allocations: 1.75 kB / 0.5198 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.197e-05/0.381, allocations: 38.27 kB / 0.5199 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.381, allocations: 3.938 kB / 0.5199 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.381, allocations: 1.312 kB / 0.5199 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3811, allocations: 0.7969 kB / 0.5199 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.138e-05/0.3811, allocations: 9.281 kB / 0.5199 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.335e-05/0.3812, allocations: 144.6 kB / 0.52 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.31e-05/0.3812, allocations: 16.78 kB / 0.52 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.322e-05/0.3812, allocations: 6.234 kB / 0.52 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-06/0.3812, allocations: 0 / 0.52 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.002e-05/0.3813, allocations: 66.3 kB / 0.5201 GB, free: 1.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.3813, allocations: 5.625 kB / 0.5201 GB, free: 1.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001576/0.3815, allocations: 68.62 kB / 0.5202 GB, free: 1.707 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.3815, allocations: 77.81 kB / 0.5203 GB, free: 1.613 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.343e-05/0.3815, allocations: 92.17 kB / 0.5203 GB, free: 1.516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.103e-06/0.3815, allocations: 25.7 kB / 0.5204 GB, free: 1.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.303e-05/0.3816, allocations: 84.08 kB / 0.5204 GB, free: 1.398 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.3816, allocations: 5.188 kB / 0.5205 GB, free: 1.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.481e-05/0.3816, allocations: 11.88 kB / 0.5205 GB, free: 1.379 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.777e-05/0.3817, allocations: 317 kB / 0.5208 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.031e-05/0.3817, allocations: 1.312 kB / 0.5208 GB, free: 1.062 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.214e-06/0.3817, allocations: 0.75 kB / 0.5208 GB, free: 1.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.542e-05/0.3817, allocations: 65.41 kB / 0.5208 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3817, allocations: 0 / 0.5208 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.568e-05/0.3818, allocations: 66.89 kB / 0.5209 GB, free: 0.918 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.3818, allocations: 32.48 kB / 0.5209 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3819, allocations: 5.188 kB / 0.5209 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.3819, allocations: 4.891 kB / 0.5209 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3819, allocations: 0 / 0.5209 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3819, allocations: 1.438 kB / 0.5209 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.3819, allocations: 0 / 0.5209 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.3819, allocations: 2.281 kB / 0.5209 GB, free: 0.8789 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 6.556e-05/0.382, allocations: 133.8 kB / 0.5211 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-06/0.382, allocations: 2.094 kB / 0.5211 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.011e-05/0.382, allocations: 11.02 kB / 0.5211 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.382, allocations: 1.125 kB / 0.5211 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.382, allocations: 4.75 kB / 0.5211 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.3821, allocations: 0 / 0.5211 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.074e-05/0.3821, allocations: 154.8 kB / 0.5212 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.3821, allocations: 0 / 0.5212 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.3821, allocations: 0 / 0.5212 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3821, allocations: 1.438 kB / 0.5212 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.3821, allocations: 3.938 kB / 0.5212 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.3822, allocations: 1.406 kB / 0.5212 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3822, allocations: 0 / 0.5212 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.181e-05/0.3822, allocations: 96.67 kB / 0.5213 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.379e-05/0.3823, allocations: 77.11 kB / 0.5214 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.3823, allocations: 5.188 kB / 0.5214 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.181e-05/0.3823, allocations: 4.891 kB / 0.5214 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.134e-05/0.3823, allocations: 0 / 0.5214 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-06/0.3823, allocations: 1.125 kB / 0.5214 GB, free: 328 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.343e-05/0.3823, allocations: 75.28 kB / 0.5215 GB, free: 252 kB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3823, allocations: 0 / 0.5215 GB, free: 252 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.000271/0.3826, allocations: 27.88 kB / 0.5215 GB, free: 240 kB / 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.0007748/0.3834, allocations: 0.8109 MB / 0.5223 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001008/0.3835, allocations: 58.05 kB / 0.5224 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3835, allocations: 0 / 0.5224 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.363e-05/0.3836, allocations: 59.64 kB / 0.5224 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.3837, allocations: 5.875 kB / 0.5224 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003091/0.384, allocations: 116.6 kB / 0.5225 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.3843, allocations: 0.6758 MB / 0.5232 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.344e-06/0.3843, allocations: 0.7969 kB / 0.5232 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.597e-05/0.3843, allocations: 8.562 kB / 0.5232 GB, free: 14.55 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3843, allocations: 0 / 0.5232 GB, free: 14.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03197/0.4163, allocations: 1.624 MB / 0.5248 GB, free: 14.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.615/8.031, allocations: 5.688 kB / 0.5248 GB, free: 14.07 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal.fmu > 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