Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.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.001304/0.001304, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.00148/0.00148, allocations: 205.5 kB / 24.51 MB, free: 3.945 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.411/1.411, allocations: 230.5 MB / 258.2 MB, free: 7.801 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.2083/0.2083, allocations: 46.96 MB / 361.6 MB, free: 3.906 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.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002325/0.002325, allocations: 83.86 kB / 0.4969 GB, free: 7.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2962, allocations: 66.08 MB / 0.5614 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002788/0.299, allocations: 1.651 MB / 0.563 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009639/0.3, allocations: 0.5581 MB / 0.5636 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.502e-05/0.3, allocations: 4 kB / 0.5636 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.711e-05/0.3001, allocations: 11.86 kB / 0.5636 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.337e-05/0.3002, allocations: 15.8 kB / 0.5636 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.3005, allocations: 67.81 kB / 0.5637 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.3006, allocations: 119.7 kB / 0.5638 GB, free: 1.586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.3008, allocations: 23.12 kB / 0.5638 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.3009, allocations: 63.72 kB / 0.5639 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.301, allocations: 47.77 kB / 0.5639 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.301, allocations: 8 kB / 0.5639 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.726e-05/0.3011, allocations: 23.98 kB / 0.564 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.156e-05/0.3011, allocations: 27.91 kB / 0.564 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.558e-05/0.3012, allocations: 43.73 kB / 0.564 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.3014, allocations: 123.5 kB / 0.5641 GB, free: 1.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3014, allocations: 0 / 0.5641 GB, free: 1.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3014, allocations: 0 / 0.5641 GB, free: 1.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.3014, allocations: 7.938 kB / 0.5641 GB, free: 1.223 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006892/0.3021, allocations: 371.5 kB / 0.5645 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.3021, allocations: 8.031 kB / 0.5645 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.297e-05/0.3021, allocations: 4.188 kB / 0.5645 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.508e-05/0.3022, allocations: 42.73 kB / 0.5646 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.3024, allocations: 24.88 kB / 0.5646 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.3026, allocations: 150.9 kB / 0.5647 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.3026, allocations: 16.12 kB / 0.5647 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.3026, allocations: 8 kB / 0.5647 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.3028, allocations: 89.64 kB / 0.5648 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.3029, allocations: 0 / 0.5648 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.3029, allocations: 8 kB / 0.5648 GB, free: 452 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.3029, allocations: 3.984 kB / 0.5648 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001411/0.303, allocations: 47.97 kB / 0.5649 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005818/0.3036, allocations: 339.6 kB / 0.5652 GB, free: 16 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.3038, allocations: 58.58 kB / 0.5653 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.931e-05/0.3038, allocations: 28.98 kB / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.3039, allocations: 0 / 0.5653 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002188/0.3041, allocations: 99.28 kB / 0.5654 GB, free: 15.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.3041, allocations: 0 / 0.5654 GB, free: 15.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003758/0.3045, allocations: 133.5 kB / 0.5655 GB, free: 15.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.3045, allocations: 59.41 kB / 0.5656 GB, free: 15.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.3047, allocations: 149.7 kB / 0.5657 GB, free: 15.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.904e-05/0.3047, allocations: 33.7 kB / 0.5657 GB, free: 15.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.222e-05/0.3048, allocations: 108.2 kB / 0.5659 GB, free: 15.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.907e-05/0.3048, allocations: 31.69 kB / 0.5659 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/0.3049, allocations: 29.7 kB / 0.5659 GB, free: 15.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.3051, allocations: 322.8 kB / 0.5662 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.533e-05/0.3052, allocations: 27.98 kB / 0.5662 GB, free: 14.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/0.3053, allocations: 79.7 kB / 0.5663 GB, free: 14.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.3055, allocations: 123.6 kB / 0.5664 GB, free: 14.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3055, allocations: 0 / 0.5664 GB, free: 14.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002543/0.3057, allocations: 149.5 kB / 0.5666 GB, free: 14.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.3058, allocations: 10.34 kB / 0.5666 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.3058, allocations: 0 / 0.5666 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.3058, allocations: 4 kB / 0.5666 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.3059, allocations: 27.92 kB / 0.5666 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.3059, allocations: 0 / 0.5666 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.025e-05/0.306, allocations: 11.95 kB / 0.5666 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.306, allocations: 8 kB / 0.5666 GB, free: 14.41 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 (mean1.y_last,$PRE.mean1.y_last,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.000126/0.3061, allocations: 137.8 kB / 0.5668 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.105e-05/0.3061, allocations: 15.98 kB / 0.5668 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.732e-05/0.3062, allocations: 12.72 kB / 0.5668 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3062, allocations: 96 / 0.5668 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.3062, allocations: 3.984 kB / 0.5668 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3062, allocations: 0 / 0.5668 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.3064, allocations: 172.6 kB / 0.567 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3064, allocations: 4.312 kB / 0.567 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.547e-05/0.3065, allocations: 11.98 kB / 0.567 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3065, allocations: 0 / 0.567 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.3065, allocations: 4 kB / 0.567 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3065, allocations: 7.938 kB / 0.567 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.3065, allocations: 0 / 0.567 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003378/0.3068, allocations: 168.9 kB / 0.5672 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.216e-05/0.3068, allocations: 15.91 kB / 0.5672 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.3069, allocations: 8 kB / 0.5672 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.015e-05/0.3069, allocations: 0 / 0.5672 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.307, allocations: 7.984 kB / 0.5672 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.307, allocations: 8 kB / 0.5672 GB, free: 13.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.257e-05/0.3071, allocations: 114.8 kB / 0.5673 GB, free: 13.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3071, allocations: 0 / 0.5673 GB, free: 13.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000216/0.3073, allocations: 28 kB / 0.5673 GB, free: 13.64 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006145/0.3079, allocations: 0.7021 MB / 0.568 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001932/0.3081, allocations: 79.83 kB / 0.5681 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3081, allocations: 0 / 0.5681 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.994e-05/0.3082, allocations: 32.17 kB / 0.5681 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001911/0.3084, allocations: 16.61 kB / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001908/0.3103, allocations: 1.706 MB / 0.5698 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.3104, allocations: 101.7 kB / 0.5699 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.296e-05/0.3104, allocations: 8.484 kB / 0.5699 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.291e-05/0.3105, allocations: 35.42 kB / 0.5699 GB, free: 10.79 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3105, allocations: 0 / 0.5699 GB, free: 10.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.3326, allocations: 2.718 MB / 0.5726 GB, free: 8.176 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.91, allocations: 6.562 kB / 0.5726 GB, free: 8.172 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --stepSize=0.0003996 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.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: 13.790722650010139]