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.001133/0.001133, allocations: 117.7 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 203.8 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.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2384/0.2384, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 67.89 kB / 480.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3083, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001538/0.3099, allocations: 472.1 kB / 0.5309 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006242/0.3106, allocations: 261.8 kB / 0.5312 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.145e-05/0.3106, allocations: 0 / 0.5312 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.613e-05/0.3106, allocations: 0 / 0.5312 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.46e-06/0.3106, 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.0003432/0.311, allocations: 60 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.145e-05/0.3111, allocations: 2.469 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.3111, allocations: 1.125 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.687e-05/0.3111, allocations: 3.984 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.105e-05/0.3112, allocations: 1.188 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.825e-06/0.3112, allocations: 0 / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001733/0.3113, allocations: 69.17 kB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.943e-06/0.3114, allocations: 0 / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.082e-05/0.3114, allocations: 1.094 kB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.3115, allocations: 54.3 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3115, allocations: 0 / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3116, allocations: 3.938 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3116, allocations: 0 / 0.5314 GB, free: 12.78 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.0003302/0.3119, allocations: 357.6 kB / 0.5317 GB, free: 12.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.3119, allocations: 9.75 kB / 0.5317 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.765e-05/0.312, allocations: 36.09 kB / 0.5318 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.312, allocations: 4.938 kB / 0.5318 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.622e-05/0.3121, allocations: 164.4 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.266e-06/0.3121, allocations: 1.688 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.527e-06/0.3121, allocations: 1.594 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.49e-05/0.3122, allocations: 31.73 kB / 0.532 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3122, allocations: 3.938 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.3123, allocations: 1.969 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.3123, allocations: 0 / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.183e-05/0.3123, allocations: 1.125 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001294/0.3124, allocations: 151.5 kB / 0.5321 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.74e-05/0.3125, allocations: 20.39 kB / 0.5321 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.091e-05/0.3125, allocations: 4.859 kB / 0.5321 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-06/0.3125, allocations: 9.641 kB / 0.5321 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.3126, allocations: 60.27 kB / 0.5322 GB, free: 11.78 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.3126, allocations: 1.656 kB / 0.5322 GB, free: 11.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000167/0.3127, allocations: 70.45 kB / 0.5323 GB, free: 11.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.3128, allocations: 81.05 kB / 0.5323 GB, free: 11.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.657e-05/0.3129, allocations: 91.8 kB / 0.5324 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.3129, allocations: 25.7 kB / 0.5325 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.426e-05/0.3129, allocations: 80.14 kB / 0.5325 GB, free: 11.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.3129, allocations: 0 / 0.5325 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.815e-05/0.313, allocations: 21.41 kB / 0.5326 GB, free: 11.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.974e-05/0.3131, allocations: 310.8 kB / 0.5329 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-06/0.3131, allocations: 4.125 kB / 0.5329 GB, free: 11.06 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.907e-06/0.3131, allocations: 5.828 kB / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.461e-05/0.3132, allocations: 60.08 kB / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3132, allocations: 0 / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.24e-05/0.3132, allocations: 61.31 kB / 0.533 GB, free: 10.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.3133, allocations: 35.48 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3133, allocations: 3.938 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3133, allocations: 5.797 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.3133, allocations: 0 / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3133, allocations: 4.094 kB / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.3134, allocations: 2.062 kB / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.3134, allocations: 0 / 0.533 GB, free: 10.87 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.642e-05/0.3135, allocations: 133.2 kB / 0.5332 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.348e-06/0.3135, allocations: 1.938 kB / 0.5332 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.025e-05/0.3135, allocations: 7.062 kB / 0.5332 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3135, allocations: 0 / 0.5332 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3135, allocations: 0 / 0.5332 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.3135, allocations: 1.312 kB / 0.5332 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.3136, allocations: 153.5 kB / 0.5333 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3136, allocations: 0 / 0.5333 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.11e-07/0.3136, allocations: 0 / 0.5333 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3136, allocations: 5.75 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.3137, allocations: 3.938 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3137, allocations: 0 / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3137, allocations: 1.219 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001085/0.3138, allocations: 105 kB / 0.5334 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.213e-05/0.3138, allocations: 78.55 kB / 0.5335 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.3138, allocations: 3.938 kB / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.417e-06/0.3139, allocations: 1.781 kB / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.353e-05/0.3139, allocations: 0 / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/0.3139, allocations: 1.25 kB / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.54e-05/0.3139, allocations: 83.2 kB / 0.5336 GB, free: 10.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3139, allocations: 0 / 0.5336 GB, free: 10.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002372/0.3142, allocations: 19.03 kB / 0.5336 GB, free: 10.22 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.0008015/0.315, allocations: 0.8045 MB / 0.5344 GB, free: 9.492 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001015/0.3151, allocations: 61.84 kB / 0.5344 GB, free: 9.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3151, allocations: 0 / 0.5344 GB, free: 9.426 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.497e-05/0.3151, allocations: 61.86 kB / 0.5345 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.3153, allocations: 2.469 kB / 0.5345 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002885/0.3156, allocations: 113.2 kB / 0.5346 GB, free: 9.219 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/0.3158, allocations: 0.6746 MB / 0.5353 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.3158, allocations: 0 / 0.5353 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.3158, allocations: 7.438 kB / 0.5353 GB, free: 8.512 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3159, allocations: 0 / 0.5353 GB, free: 8.512 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01782/0.3337, allocations: 1.619 MB / 0.5369 GB, free: 7.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.757/8.091, allocations: 3.156 kB / 0.5369 GB, free: 7.551 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