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.00174/0.00174, allocations: 110 kB / 20.43 MB, free: 1.453 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.001969/0.001969, allocations: 213.4 kB / 23.74 MB, free: 4.66 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.516/1.516, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.2453/0.2453, allocations: 46.91 MB / 360.8 MB, free: 4.273 MB / 286.1 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002657/0.002657, allocations: 83.8 kB / 0.4962 GB, free: 7.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.373, allocations: 66.09 MB / 0.5607 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003156/0.3761, allocations: 1.696 MB / 0.5624 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.3773, allocations: 0.601 MB / 0.563 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.496e-05/0.3774, allocations: 4 kB / 0.563 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.3775, allocations: 15.75 kB / 0.563 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.559e-05/0.3776, allocations: 11.86 kB / 0.563 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003411/0.3779, allocations: 67.81 kB / 0.5631 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001959/0.3781, allocations: 119.6 kB / 0.5632 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.3783, allocations: 27.12 kB / 0.5632 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001924/0.3785, allocations: 59.77 kB / 0.5633 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.3786, allocations: 51.77 kB / 0.5633 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.501e-05/0.3787, allocations: 8 kB / 0.5633 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.582e-05/0.3787, allocations: 20 kB / 0.5633 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.853e-05/0.3788, allocations: 27.91 kB / 0.5634 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.734e-05/0.3788, allocations: 47.73 kB / 0.5634 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.3791, allocations: 127.5 kB / 0.5635 GB, free: 1.281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3791, allocations: 0 / 0.5635 GB, free: 1.281 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3791, allocations: 7.938 kB / 0.5635 GB, free: 1.273 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3791, allocations: 0 / 0.5635 GB, free: 1.273 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.0008795/0.38, allocations: 375.4 kB / 0.5639 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.38, allocations: 12.03 kB / 0.5639 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.741e-05/0.3801, allocations: 34.75 kB / 0.5639 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002116/0.3803, allocations: 24.88 kB / 0.564 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.3806, allocations: 150.9 kB / 0.5641 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.3806, allocations: 12.36 kB / 0.5641 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.158e-05/0.3806, allocations: 7.938 kB / 0.5641 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.3809, allocations: 103.8 kB / 0.5642 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.3809, allocations: 0 / 0.5642 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.3809, allocations: 4 kB / 0.5642 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3809, allocations: 4 kB / 0.5642 GB, free: 500 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.3811, allocations: 51.91 kB / 0.5643 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006356/0.3817, allocations: 359.6 kB / 0.5646 GB, free: 44 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/0.3819, allocations: 58.58 kB / 0.5647 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.015e-05/0.382, allocations: 24.95 kB / 0.5647 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.382, allocations: 7.938 kB / 0.5647 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.3822, allocations: 103.3 kB / 0.5648 GB, free: 15.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.3822, allocations: 0 / 0.5648 GB, free: 15.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003704/0.3826, allocations: 125.5 kB / 0.5649 GB, free: 15.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.3826, allocations: 55.41 kB / 0.565 GB, free: 15.63 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.3828, allocations: 149.8 kB / 0.5651 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.3828, allocations: 33.7 kB / 0.5652 GB, free: 15.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.182e-05/0.3829, allocations: 104.2 kB / 0.5653 GB, free: 15.33 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.3829, allocations: 31.73 kB / 0.5653 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.852e-05/0.383, allocations: 33.72 kB / 0.5653 GB, free: 15.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3831, allocations: 318.8 kB / 0.5656 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.634e-05/0.3832, allocations: 27.98 kB / 0.5657 GB, free: 14.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.3833, allocations: 87.64 kB / 0.5657 GB, free: 14.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.3835, allocations: 119.6 kB / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.3835, allocations: 7.984 kB / 0.5659 GB, free: 14.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002687/0.3838, allocations: 137.4 kB / 0.566 GB, free: 14.51 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.3838, allocations: 8.219 kB / 0.566 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3838, allocations: 7.984 kB / 0.566 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.3838, allocations: 0 / 0.566 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.384, allocations: 27.98 kB / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.384, allocations: 4 kB / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.424e-05/0.3841, allocations: 7.953 kB / 0.566 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.3841, allocations: 11.92 kB / 0.5661 GB, free: 14.44 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.0001285/0.3842, allocations: 127.5 kB / 0.5662 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.635e-05/0.3842, allocations: 19.97 kB / 0.5662 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.282e-05/0.3843, allocations: 16.72 kB / 0.5662 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3843, allocations: 0 / 0.5662 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3843, allocations: 3.938 kB / 0.5662 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.3843, allocations: 7.984 kB / 0.5662 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001987/0.3845, allocations: 172.7 kB / 0.5664 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3845, allocations: 0 / 0.5664 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.3846, allocations: 23.88 kB / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3846, allocations: 4 kB / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.3846, allocations: 3.984 kB / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3846, allocations: 0 / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3846, allocations: 4 kB / 0.5664 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003532/0.385, allocations: 172.9 kB / 0.5666 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.454e-05/0.385, allocations: 11.92 kB / 0.5666 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.385, allocations: 0 / 0.5666 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.221e-05/0.3851, allocations: 4 kB / 0.5666 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.705e-05/0.3851, allocations: 11.98 kB / 0.5666 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.3851, allocations: 12.05 kB / 0.5666 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.699e-05/0.3852, allocations: 106.6 kB / 0.5667 GB, free: 13.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3852, allocations: 0 / 0.5667 GB, free: 13.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002326/0.3855, allocations: 23.94 kB / 0.5668 GB, free: 13.66 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.0006406/0.3861, allocations: 0.7061 MB / 0.5674 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002264/0.3863, allocations: 75.97 kB / 0.5675 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3863, allocations: 0 / 0.5675 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.824e-05/0.3864, allocations: 35.92 kB / 0.5675 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.3866, allocations: 14.23 kB / 0.5676 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.3886, allocations: 1.699 MB / 0.5692 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.389, allocations: 0.7086 MB / 0.5699 GB, free: 10.24 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.185e-05/0.389, allocations: 16.34 kB / 0.5699 GB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.324e-05/0.3891, allocations: 35.42 kB / 0.57 GB, free: 10.19 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3891, allocations: 3.938 kB / 0.57 GB, free: 10.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.4187, allocations: 2.624 MB / 0.5725 GB, free: 7.652 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.52, allocations: 4.062 kB / 0.5725 GB, free: 7.648 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.620355306193233]