Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.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.0019/0.0019, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.00246/0.00246, allocations: 207.6 kB / 24.53 MB, free: 4.07 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.522/1.522, allocations: 230.5 MB / 258.2 MB, free: 8.023 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.2495/0.2495, allocations: 46.92 MB / 361.6 MB, free: 4.199 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.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002596/0.002596, allocations: 75.88 kB / 0.4969 GB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3803/0.3829, allocations: 66.09 MB / 0.5615 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001822/0.3847, allocations: 485.1 kB / 0.5619 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00363/0.3883, allocations: 2.178 MB / 0.5641 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.814e-05/0.3883, allocations: 0 / 0.5641 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.564e-05/0.3883, allocations: 3.938 kB / 0.5641 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.69e-05/0.3884, allocations: 0 / 0.5641 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.3898, allocations: 394.8 kB / 0.5645 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.909e-05/0.3899, allocations: 4 kB / 0.5645 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.288e-05/0.3899, allocations: 7.938 kB / 0.5645 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.862e-05/0.3899, allocations: 3.938 kB / 0.5645 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02136/0.4113, allocations: 3.388 MB / 0.5678 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.4113, allocations: 0 / 0.5678 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.061e-05/0.4114, allocations: 4 kB / 0.5678 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.21e-05/0.4114, allocations: 0 / 0.5678 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.987e-05/0.4114, allocations: 4 kB / 0.5678 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.4116, allocations: 19.97 kB / 0.5678 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.4116, allocations: 0 / 0.5678 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4116, allocations: 0 / 0.5678 GB, free: 14.46 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.4116, allocations: 0 / 0.5678 GB, free: 14.46 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003122/0.4119, allocations: 238.4 kB / 0.568 GB, free: 14.2 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.4119, allocations: 12.03 kB / 0.568 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.176e-05/0.412, allocations: 79.47 kB / 0.5681 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.626e-05/0.4121, allocations: 106 kB / 0.5682 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.4123, allocations: 88.2 kB / 0.5683 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.4124, allocations: 181.8 kB / 0.5685 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.137e-05/0.4125, allocations: 150.9 kB / 0.5686 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.849e-05/0.4126, allocations: 150.9 kB / 0.5688 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.455e-05/0.4126, allocations: 108.9 kB / 0.5689 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.588e-05/0.4127, allocations: 79.28 kB / 0.5689 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.4128, allocations: 162.5 kB / 0.5691 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.897e-05/0.4129, allocations: 150.6 kB / 0.5692 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.677e-05/0.4129, allocations: 150.6 kB / 0.5694 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003413/0.4133, allocations: 409 kB / 0.5698 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.4134, allocations: 181.1 kB / 0.57 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.186e-05/0.4134, allocations: 80.14 kB / 0.57 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.4135, allocations: 79.22 kB / 0.5701 GB, free: 11.97 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.57e-05/0.4136, allocations: 105.8 kB / 0.5702 GB, free: 11.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 9.61e-07/0.4136, allocations: 0 / 0.5702 GB, free: 11.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 9.698e-05/0.4137, allocations: 33.69 kB / 0.5702 GB, free: 11.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.4138, allocations: 186 kB / 0.5704 GB, free: 11.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.4139, allocations: 93.86 kB / 0.5705 GB, free: 11.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.4139, allocations: 25.7 kB / 0.5705 GB, free: 11.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.259e-05/0.414, allocations: 80.14 kB / 0.5706 GB, free: 11.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.354e-06/0.414, allocations: 0 / 0.5706 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/0.414, allocations: 17.66 kB / 0.5706 GB, free: 11.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.4142, allocations: 315 kB / 0.5709 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.689e-06/0.4142, allocations: 0 / 0.5709 GB, free: 11.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.351e-05/0.4142, allocations: 13.72 kB / 0.5709 GB, free: 11.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.2e-05/0.4142, allocations: 75.28 kB / 0.571 GB, free: 10.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.27e-05/0.4143, allocations: 75.28 kB / 0.5711 GB, free: 10.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.845e-05/0.4143, allocations: 41.62 kB / 0.5711 GB, free: 10.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.832e-05/0.4144, allocations: 79.28 kB / 0.5712 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.995e-05/0.4144, allocations: 83.3 kB / 0.5713 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.798e-05/0.4145, allocations: 158.6 kB / 0.5714 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.827e-05/0.4146, allocations: 79.22 kB / 0.5715 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.832e-05/0.4146, allocations: 154.5 kB / 0.5716 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.866e-05/0.4147, allocations: 75.28 kB / 0.5717 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.4148, allocations: 87.2 kB / 0.5718 GB, free: 10.14 MB / 414.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001736/0.415, allocations: 264.4 kB / 0.5721 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.72e-05/0.415, allocations: 108.9 kB / 0.5722 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.873e-05/0.4151, allocations: 111.7 kB / 0.5723 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.424e-05/0.4152, allocations: 176.3 kB / 0.5724 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.767e-05/0.4153, allocations: 184.2 kB / 0.5726 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.358e-05/0.4154, allocations: 184.3 kB / 0.5728 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002784/0.4157, allocations: 372.3 kB / 0.5731 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.002e-05/0.4157, allocations: 108.9 kB / 0.5732 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.393e-05/0.4158, allocations: 109 kB / 0.5733 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.173e-05/0.4159, allocations: 180.2 kB / 0.5735 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-05/0.4159, allocations: 180.3 kB / 0.5737 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.532e-05/0.416, allocations: 180.3 kB / 0.5739 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.951e-05/0.4161, allocations: 188.2 kB / 0.574 GB, free: 7.699 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001918/0.4163, allocations: 308.1 kB / 0.5743 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.077e-05/0.4164, allocations: 104.9 kB / 0.5744 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.4165, allocations: 184.3 kB / 0.5746 GB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.4166, allocations: 112.9 kB / 0.5747 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.637e-05/0.4167, allocations: 176.3 kB / 0.5749 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.263e-05/0.4167, allocations: 104.9 kB / 0.575 GB, free: 6.672 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.247e-05/0.4168, allocations: 83.28 kB / 0.5751 GB, free: 6.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4168, allocations: 0 / 0.5751 GB, free: 6.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002567/0.4171, allocations: 0 / 0.5751 GB, free: 6.59 MB / 414.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0005231/0.4176, allocations: 0.8049 MB / 0.5759 GB, free: 5.754 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.833e-05/0.4176, allocations: 3.938 kB / 0.5759 GB, free: 5.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4176, allocations: 0 / 0.5759 GB, free: 5.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.703e-06/0.4176, allocations: 3.938 kB / 0.5759 GB, free: 5.746 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.418, allocations: 459.7 kB / 0.5763 GB, free: 5.293 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004041/0.4184, allocations: 178 kB / 0.5765 GB, free: 5.078 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.4188, allocations: 0.6806 MB / 0.5771 GB, free: 4.371 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.267e-05/0.4188, allocations: 0 / 0.5771 GB, free: 4.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.978e-05/0.4188, allocations: 7.438 kB / 0.5771 GB, free: 4.363 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4188, allocations: 8 kB / 0.5771 GB, free: 4.355 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02121/0.44, allocations: 1.136 MB / 0.5783 GB, free: 3.324 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.61, allocations: 0 / 0.5783 GB, free: 3.324 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.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.722918970976025]