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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001379/0.001379, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 230.5 MB / 257.4 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.231/0.231, allocations: 46.93 MB / 360.8 MB, free: 4.164 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003459/0.003459, allocations: 79.88 kB / 0.4962 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3129, allocations: 66.07 MB / 0.5607 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00171/0.3146, allocations: 481.1 kB / 0.5612 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000735/0.3153, allocations: 277.4 kB / 0.5614 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.201e-05/0.3153, allocations: 0 / 0.5614 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.496e-05/0.3153, allocations: 0 / 0.5614 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.029e-06/0.3154, allocations: 0 / 0.5614 GB, free: 3.555 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464: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.0003217/0.3157, allocations: 51.81 kB / 0.5615 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.731e-05/0.3157, allocations: 3.984 kB / 0.5615 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.632e-05/0.3158, allocations: 8 kB / 0.5615 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.326e-05/0.3158, allocations: 0 / 0.5615 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.961e-05/0.3158, allocations: 0 / 0.5615 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.355e-06/0.3158, allocations: 0 / 0.5615 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.316, allocations: 67.94 kB / 0.5616 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.981e-06/0.316, allocations: 0 / 0.5616 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.008e-05/0.316, allocations: 4 kB / 0.5616 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001378/0.3161, allocations: 55.67 kB / 0.5616 GB, free: 3.371 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3161, allocations: 3.938 kB / 0.5616 GB, free: 3.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3161, allocations: 0 / 0.5616 GB, free: 3.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.3161, allocations: 0 / 0.5616 GB, free: 3.367 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.0003419/0.3165, allocations: 290 kB / 0.5619 GB, free: 3.047 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3165, allocations: 8.031 kB / 0.5619 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.637e-05/0.3166, allocations: 30.75 kB / 0.5619 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.246e-05/0.3166, allocations: 0.9375 kB / 0.5619 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.947e-05/0.3167, allocations: 114.5 kB / 0.562 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.3167, allocations: 384 / 0.562 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.3167, allocations: 4.359 kB / 0.562 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.998e-05/0.3168, allocations: 30.27 kB / 0.5621 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3168, allocations: 7.938 kB / 0.5621 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.603e-06/0.3168, allocations: 0 / 0.5621 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3168, allocations: 0 / 0.5621 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.132e-05/0.3168, allocations: 3.938 kB / 0.5621 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.317, allocations: 124.8 kB / 0.5622 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.742e-05/0.317, allocations: 18.56 kB / 0.5622 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.407e-05/0.317, allocations: 4.859 kB / 0.5622 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-06/0.317, allocations: 4.094 kB / 0.5622 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.927e-05/0.3171, allocations: 60.27 kB / 0.5623 GB, free: 2.535 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3171, allocations: 0 / 0.5623 GB, free: 2.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001779/0.3173, allocations: 71.28 kB / 0.5624 GB, free: 2.453 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.3173, allocations: 81.09 kB / 0.5624 GB, free: 2.355 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.614e-05/0.3174, allocations: 93.81 kB / 0.5625 GB, free: 2.254 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.3174, allocations: 29.64 kB / 0.5626 GB, free: 2.219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.579e-05/0.3174, allocations: 80.14 kB / 0.5626 GB, free: 2.137 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.3175, allocations: 128 / 0.5626 GB, free: 2.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.782e-05/0.3175, allocations: 17.72 kB / 0.5626 GB, free: 2.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3176, allocations: 314.8 kB / 0.5629 GB, free: 1.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.047e-05/0.3176, allocations: 0 / 0.5629 GB, free: 1.797 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.894e-06/0.3176, allocations: 4 kB / 0.5629 GB, free: 1.793 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.09e-05/0.3177, allocations: 60.27 kB / 0.563 GB, free: 1.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3177, allocations: 0 / 0.563 GB, free: 1.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.779e-05/0.3178, allocations: 63.33 kB / 0.5631 GB, free: 1.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.355e-05/0.3178, allocations: 37.8 kB / 0.5631 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3178, allocations: 3.938 kB / 0.5631 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.3178, allocations: 0 / 0.5631 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.3178, allocations: 0 / 0.5631 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.3179, allocations: 0 / 0.5631 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.856e-05/0.3179, allocations: 4 kB / 0.5631 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.3179, allocations: 4 kB / 0.5631 GB, free: 1.59 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.0001048/0.318, allocations: 136.8 kB / 0.5632 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.636e-06/0.318, allocations: 0 / 0.5632 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.211e-05/0.318, allocations: 10.94 kB / 0.5633 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.318, allocations: 4 kB / 0.5633 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.318, allocations: 0 / 0.5633 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.318, allocations: 0 / 0.5633 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.3181, allocations: 116.8 kB / 0.5634 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3181, allocations: 0 / 0.5634 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3181, allocations: 3.938 kB / 0.5634 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3181, allocations: 4 kB / 0.5634 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.3181, allocations: 3.938 kB / 0.5634 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3181, allocations: 0 / 0.5634 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3181, allocations: 0 / 0.5634 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001094/0.3182, allocations: 98.77 kB / 0.5635 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-06/0.3183, allocations: 0 / 0.5635 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.3183, allocations: 3.938 kB / 0.5635 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.103e-05/0.3183, allocations: 4 kB / 0.5635 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.3183, allocations: 4 kB / 0.5635 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.3183, allocations: 0 / 0.5635 GB, free: 1.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.388e-05/0.3183, allocations: 79.22 kB / 0.5636 GB, free: 1.047 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3183, allocations: 4.031 kB / 0.5636 GB, free: 1.043 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002353/0.3186, allocations: 23.92 kB / 0.5636 GB, free: 1.02 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.001006/0.3196, allocations: 0.7985 MB / 0.5644 GB, free: 248 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.807e-05/0.3197, allocations: 59.39 kB / 0.5644 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.3197, allocations: 4.062 kB / 0.5644 GB, free: 172 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.364e-05/0.3197, allocations: 55.41 kB / 0.5645 GB, free: 104 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.3199, allocations: 15.92 kB / 0.5645 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003145/0.3202, allocations: 118.6 kB / 0.5646 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.3205, allocations: 0.669 MB / 0.5653 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.039e-06/0.3205, allocations: 0 / 0.5653 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.62e-05/0.3205, allocations: 7.438 kB / 0.5653 GB, free: 15.23 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3205, allocations: 0 / 0.5653 GB, free: 15.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.349, allocations: 1.746 MB / 0.567 GB, free: 13.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.86, allocations: 15.97 kB / 0.567 GB, free: 13.56 MB / 414.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.650924905203283]