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.001433/0.001433, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001771/0.001771, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2108/0.2108, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 75.88 kB / 480.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3615, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.002355/0.364, allocations: 485.5 kB / 0.5309 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.365, allocations: 258 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.95e-05/0.3651, allocations: 0 / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.096e-05/0.3651, allocations: 0 / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.968e-06/0.3651, allocations: 3.938 kB / 0.5312 GB, free: 12.89 MB / 398.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.0004189/0.3656, allocations: 61.22 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.017e-05/0.3657, allocations: 3.938 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.271e-05/0.3657, allocations: 0 / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.039e-05/0.3657, allocations: 0 / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.537e-05/0.3658, allocations: 0 / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.3658, allocations: 0 / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001993/0.366, allocations: 73.27 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.021e-05/0.366, allocations: 0 / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.331e-05/0.366, allocations: 0 / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.3662, allocations: 53.03 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.3662, allocations: 0 / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3662, allocations: 7.938 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.3662, allocations: 0 / 0.5314 GB, free: 12.77 MB / 398.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.0004155/0.3666, allocations: 360.1 kB / 0.5317 GB, free: 12.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.3667, allocations: 10.78 kB / 0.5317 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.28e-05/0.3667, allocations: 30.75 kB / 0.5318 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.607e-05/0.3668, allocations: 0.9375 kB / 0.5318 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.3669, allocations: 160.4 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.3669, allocations: 3.031 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.496e-06/0.3669, allocations: 4.312 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.251e-05/0.367, allocations: 36.94 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.367, allocations: 3.938 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.3671, allocations: 0 / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.3671, allocations: 0 / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.739e-05/0.3671, allocations: 3 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001258/0.3672, allocations: 149.6 kB / 0.5321 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.643e-05/0.3673, allocations: 18.55 kB / 0.5321 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.793e-05/0.3673, allocations: 8.859 kB / 0.5321 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-06/0.3673, allocations: 0 / 0.5321 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.041e-05/0.3673, allocations: 64.23 kB / 0.5322 GB, free: 11.78 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3673, allocations: 3.625 kB / 0.5322 GB, free: 11.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001609/0.3675, allocations: 70.31 kB / 0.5323 GB, free: 11.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.3676, allocations: 77.11 kB / 0.5323 GB, free: 11.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.37e-05/0.3676, allocations: 89.86 kB / 0.5324 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.3676, allocations: 25.7 kB / 0.5325 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.255e-05/0.3677, allocations: 84.27 kB / 0.5325 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.3677, allocations: 0 / 0.5325 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.3677, allocations: 20.95 kB / 0.5326 GB, free: 11.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.3678, allocations: 314.8 kB / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.998e-06/0.3678, allocations: 3.375 kB / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.779e-06/0.3678, allocations: 0 / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.381e-05/0.3679, allocations: 58.95 kB / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3679, allocations: 64 / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.27e-05/0.368, allocations: 70.05 kB / 0.533 GB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.337e-05/0.368, allocations: 34.86 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.368, allocations: 3.938 kB / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.3681, allocations: 1.344 kB / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.578e-06/0.3681, allocations: 3.984 kB / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.3681, allocations: 0 / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.315e-05/0.3681, allocations: 5.438 kB / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.3681, allocations: 0 / 0.533 GB, free: 10.86 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 0.0001054/0.3683, allocations: 138.7 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.3683, allocations: 4.984 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.392e-05/0.3683, allocations: 7.062 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.3683, allocations: 0 / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3683, allocations: 0.9688 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3683, allocations: 0 / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.3685, allocations: 146 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3685, allocations: 0 / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.503e-06/0.3685, allocations: 1.125 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.3685, allocations: 3.984 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.3685, allocations: 8.969 kB / 0.5333 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3685, allocations: 4 kB / 0.5333 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3685, allocations: 1 kB / 0.5333 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.3687, allocations: 94.03 kB / 0.5334 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.144e-05/0.3687, allocations: 81.09 kB / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.3687, allocations: 5.156 kB / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.847e-06/0.3688, allocations: 0 / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.311e-05/0.3688, allocations: 5.375 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.3688, allocations: 5.406 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.925e-05/0.3688, allocations: 75.28 kB / 0.5336 GB, free: 10.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3688, allocations: 0 / 0.5336 GB, free: 10.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002301/0.3691, allocations: 19.25 kB / 0.5336 GB, free: 10.21 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.0008472/0.3699, allocations: 0.7948 MB / 0.5344 GB, free: 9.496 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001142/0.37, allocations: 68.11 kB / 0.5344 GB, free: 9.422 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.37, allocations: 1.125 kB / 0.5344 GB, free: 9.422 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.272e-05/0.3701, allocations: 53.62 kB / 0.5345 GB, free: 9.359 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.3702, allocations: 2.688 kB / 0.5345 GB, free: 9.359 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003239/0.3706, allocations: 116.7 kB / 0.5346 GB, free: 9.219 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.3708, allocations: 0.6702 MB / 0.5353 GB, free: 8.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.62e-06/0.3709, allocations: 0 / 0.5353 GB, free: 8.523 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.246e-05/0.3709, allocations: 8.875 kB / 0.5353 GB, free: 8.516 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3709, allocations: 4.125 kB / 0.5353 GB, free: 8.512 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.3973, allocations: 1.616 MB / 0.5369 GB, free: 7.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/8.05, allocations: 9.031 kB / 0.5369 GB, free: 7.547 MB / 398.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