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.001369/0.001369, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.526/1.526, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2341/0.2341, allocations: 46.12 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002282, allocations: 72.06 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3478, allocations: 62.45 MB / 0.5306 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001563/0.3494, allocations: 475.4 kB / 0.5311 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000674/0.3501, allocations: 261.8 kB / 0.5313 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.538e-05/0.3501, allocations: 3.938 kB / 0.5313 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.185e-05/0.3501, allocations: 0 / 0.5313 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.521e-06/0.3502, allocations: 5.531 kB / 0.5313 GB, free: 12.68 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.00032/0.3505, allocations: 52.53 kB / 0.5314 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.138e-05/0.3505, allocations: 4 kB / 0.5314 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.995e-05/0.3506, allocations: 1.594 kB / 0.5314 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.401e-05/0.3506, allocations: 1.312 kB / 0.5314 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.765e-05/0.3506, allocations: 0 / 0.5314 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.514e-06/0.3506, allocations: 1.156 kB / 0.5314 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.3508, allocations: 63.53 kB / 0.5314 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.164e-06/0.3508, allocations: 1.781 kB / 0.5314 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.307e-05/0.3508, allocations: 7.984 kB / 0.5314 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.351, allocations: 53.2 kB / 0.5315 GB, free: 12.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.351, allocations: 7.938 kB / 0.5315 GB, free: 12.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.351, allocations: 1.812 kB / 0.5315 GB, free: 12.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.351, allocations: 0 / 0.5315 GB, free: 12.57 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.0003736/0.3514, allocations: 357.9 kB / 0.5318 GB, free: 12.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.3514, allocations: 9.125 kB / 0.5318 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.485e-05/0.3515, allocations: 30.75 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.578e-05/0.3515, allocations: 3.156 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.3516, allocations: 160.4 kB / 0.532 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.868e-06/0.3516, allocations: 384 / 0.532 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.194e-06/0.3517, allocations: 4.375 kB / 0.532 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.191e-05/0.3518, allocations: 36.52 kB / 0.5321 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.3518, allocations: 5.875 kB / 0.5321 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-06/0.3518, allocations: 0 / 0.5321 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.3518, allocations: 0 / 0.5321 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.971e-05/0.3518, allocations: 5.469 kB / 0.5321 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001849/0.352, allocations: 151.1 kB / 0.5322 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.065e-05/0.352, allocations: 15.92 kB / 0.5322 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.633e-05/0.3521, allocations: 10.2 kB / 0.5323 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.439e-06/0.3521, allocations: 0 / 0.5323 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.613e-05/0.3521, allocations: 65.5 kB / 0.5323 GB, free: 11.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3522, allocations: 0 / 0.5323 GB, free: 11.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002047/0.3524, allocations: 71 kB / 0.5324 GB, free: 11.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.3524, allocations: 78.45 kB / 0.5325 GB, free: 11.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.286e-05/0.3525, allocations: 93.81 kB / 0.5325 GB, free: 11.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.3525, allocations: 31.02 kB / 0.5326 GB, free: 11.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.112e-05/0.3526, allocations: 84.08 kB / 0.5327 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.3526, allocations: 0 / 0.5327 GB, free: 11.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.3526, allocations: 16.23 kB / 0.5327 GB, free: 11.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3528, allocations: 316 kB / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.11e-05/0.3528, allocations: 1.438 kB / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.134e-06/0.3528, allocations: 0 / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.413e-05/0.3529, allocations: 60.36 kB / 0.533 GB, free: 10.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3529, allocations: 4 kB / 0.533 GB, free: 10.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.573e-05/0.353, allocations: 65.7 kB / 0.5331 GB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.353, allocations: 32.36 kB / 0.5331 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.353, allocations: 3.938 kB / 0.5331 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.353, allocations: 0 / 0.5331 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.363e-06/0.353, allocations: 1.844 kB / 0.5331 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3531, allocations: 0 / 0.5331 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.558e-05/0.3531, allocations: 0 / 0.5331 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.3531, allocations: 3.406 kB / 0.5331 GB, free: 10.68 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.0001072/0.3532, allocations: 139.6 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.135e-05/0.3532, allocations: 7.078 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.127e-05/0.3532, allocations: 7.062 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.3532, allocations: 0 / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3532, allocations: 0 / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3533, allocations: 0 / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.3534, allocations: 148.5 kB / 0.5334 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3534, allocations: 0 / 0.5334 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-07/0.3534, allocations: 0 / 0.5334 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.3534, allocations: 0 / 0.5334 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.3534, allocations: 11.92 kB / 0.5334 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3534, allocations: 0 / 0.5334 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3534, allocations: 2.656 kB / 0.5334 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001041/0.3535, allocations: 87.78 kB / 0.5335 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.3536, allocations: 82.69 kB / 0.5336 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.3536, allocations: 3.938 kB / 0.5336 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.052e-05/0.3536, allocations: 1.594 kB / 0.5336 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.074e-05/0.3536, allocations: 4.031 kB / 0.5336 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.3537, allocations: 5.688 kB / 0.5336 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.387e-05/0.3537, allocations: 75.28 kB / 0.5337 GB, free: 10.03 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3537, allocations: 7.875 kB / 0.5337 GB, free: 10.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002261/0.3539, allocations: 24.62 kB / 0.5337 GB, free: 10.01 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.00102/0.355, allocations: 0.8052 MB / 0.5345 GB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001133/0.3551, allocations: 60.11 kB / 0.5346 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3551, allocations: 0 / 0.5346 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.707e-05/0.3551, allocations: 54.56 kB / 0.5346 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.3553, allocations: 6.469 kB / 0.5346 GB, free: 9.156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003166/0.3556, allocations: 119.1 kB / 0.5347 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.3559, allocations: 0.6712 MB / 0.5354 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.251e-06/0.356, allocations: 0 / 0.5354 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.542e-05/0.356, allocations: 12.72 kB / 0.5354 GB, free: 8.305 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.356, allocations: 0 / 0.5354 GB, free: 8.305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02589/0.3819, allocations: 1.609 MB / 0.537 GB, free: 7.352 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.19/8.572, allocations: 11.91 kB / 0.537 GB, free: 7.348 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