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.001278/0.001278, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.001422/0.001422, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.527/1.527, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.2405/0.2405, allocations: 46.9 MB / 357.4 MB, free: 10.48 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="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.002308/0.002308, allocations: 75.88 kB / 0.4912 GB, free: 8.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1342, allocations: 65.99 MB / 0.5557 GB, free: 6.223 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003185/0.1374, allocations: 1.698 MB / 0.5573 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.1385, allocations: 0.5938 MB / 0.5579 GB, free: 3.906 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.908e-05/0.1386, allocations: 3.938 kB / 0.5579 GB, free: 3.902 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.1387, allocations: 7.875 kB / 0.5579 GB, free: 3.895 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.506e-05/0.1388, allocations: 27.78 kB / 0.558 GB, free: 3.867 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.1391, allocations: 67.81 kB / 0.558 GB, free: 3.801 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002192/0.1393, allocations: 111.7 kB / 0.5581 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.1394, allocations: 33.09 kB / 0.5582 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.1396, allocations: 51.8 kB / 0.5582 GB, free: 3.609 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.1397, allocations: 51.75 kB / 0.5583 GB, free: 3.559 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.1397, allocations: 12 kB / 0.5583 GB, free: 3.547 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.516e-05/0.1398, allocations: 16 kB / 0.5583 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.274e-05/0.1398, allocations: 27.92 kB / 0.5583 GB, free: 3.504 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.387e-05/0.1399, allocations: 47.73 kB / 0.5584 GB, free: 3.457 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.1401, allocations: 131.4 kB / 0.5585 GB, free: 3.328 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1401, allocations: 0 / 0.5585 GB, free: 3.328 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1401, allocations: 0 / 0.5585 GB, free: 3.328 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.1401, allocations: 4 kB / 0.5585 GB, free: 3.324 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008514/0.141, allocations: 426.8 kB / 0.5589 GB, free: 2.859 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.141, allocations: 8.031 kB / 0.5589 GB, free: 2.852 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.138e-05/0.1411, allocations: 46.73 kB / 0.5589 GB, free: 2.797 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002238/0.1413, allocations: 20.88 kB / 0.559 GB, free: 2.777 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.1416, allocations: 212.8 kB / 0.5592 GB, free: 2.531 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.1416, allocations: 4.375 kB / 0.5592 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.819e-05/0.1417, allocations: 15.94 kB / 0.5592 GB, free: 2.512 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.1419, allocations: 93.58 kB / 0.5593 GB, free: 2.414 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.1419, allocations: 0 / 0.5593 GB, free: 2.414 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.1419, allocations: 7.984 kB / 0.5593 GB, free: 2.406 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.1419, allocations: 7.984 kB / 0.5593 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000149/0.1421, allocations: 51.97 kB / 0.5593 GB, free: 2.348 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006474/0.1427, allocations: 388.4 kB / 0.5597 GB, free: 1.918 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.1429, allocations: 54.56 kB / 0.5598 GB, free: 1.855 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.208e-05/0.1429, allocations: 28.98 kB / 0.5598 GB, free: 1.824 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.143, allocations: 0 / 0.5598 GB, free: 1.824 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002126/0.1432, allocations: 103.2 kB / 0.5599 GB, free: 1.711 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.1432, allocations: 0 / 0.5599 GB, free: 1.711 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.000375/0.1436, allocations: 137.5 kB / 0.56 GB, free: 1.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.1436, allocations: 55.41 kB / 0.5601 GB, free: 1.504 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.1438, allocations: 144.8 kB / 0.5602 GB, free: 1.355 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.1438, allocations: 25.7 kB / 0.5602 GB, free: 1.324 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.507e-05/0.1439, allocations: 120.1 kB / 0.5604 GB, free: 1.203 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.1439, allocations: 23.84 kB / 0.5604 GB, free: 1.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.678e-05/0.144, allocations: 29.7 kB / 0.5604 GB, free: 1.145 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1441, allocations: 322.8 kB / 0.5607 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.37e-05/0.1442, allocations: 27.98 kB / 0.5607 GB, free: 0.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.1443, allocations: 89.14 kB / 0.5608 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/0.1445, allocations: 123.6 kB / 0.5609 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1445, allocations: 0 / 0.5609 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002728/0.1448, allocations: 149.3 kB / 0.5611 GB, free: 388 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.1448, allocations: 4 kB / 0.5611 GB, free: 384 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.1448, allocations: 4 kB / 0.5611 GB, free: 380 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.1448, allocations: 4 kB / 0.5611 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.1449, allocations: 23.98 kB / 0.5611 GB, free: 352 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.145, allocations: 11.92 kB / 0.5611 GB, free: 340 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.482e-05/0.145, allocations: 11.95 kB / 0.5611 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.145, allocations: 12.22 kB / 0.5612 GB, free: 316 kB / 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.0001173/0.1452, allocations: 121.8 kB / 0.5613 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.441e-05/0.1452, allocations: 11.89 kB / 0.5613 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.1452, allocations: 12.7 kB / 0.5613 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1452, allocations: 4 kB / 0.5613 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1452, allocations: 96 / 0.5613 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1452, allocations: 3.984 kB / 0.5613 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.1455, allocations: 205.5 kB / 0.5615 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.1455, allocations: 384 / 0.5615 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.1456, allocations: 27.86 kB / 0.5615 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1456, allocations: 0 / 0.5615 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.1456, allocations: 3.938 kB / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1456, allocations: 3.938 kB / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1456, allocations: 4 kB / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.1459, allocations: 165 kB / 0.5617 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.864e-05/0.146, allocations: 89.06 kB / 0.5618 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.146, allocations: 15.98 kB / 0.5618 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.056e-05/0.1461, allocations: 0 / 0.5618 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.243e-05/0.1461, allocations: 7.984 kB / 0.5618 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.1461, allocations: 4 kB / 0.5618 GB, free: 15.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.159e-05/0.1462, allocations: 107.3 kB / 0.5619 GB, free: 15.44 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1462, allocations: 0 / 0.5619 GB, free: 15.44 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002295/0.1464, allocations: 23.98 kB / 0.5619 GB, free: 15.41 MB / 430.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.0006303/0.1471, allocations: 0.7021 MB / 0.5626 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000231/0.1473, allocations: 75.84 kB / 0.5627 GB, free: 14.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1473, allocations: 0 / 0.5627 GB, free: 14.61 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 8.772e-05/0.1474, allocations: 36.59 kB / 0.5627 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.1476, allocations: 22.03 kB / 0.5627 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.1497, allocations: 1.705 MB / 0.5644 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.15, allocations: 0.704 MB / 0.5651 GB, free: 11.98 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.768e-05/0.1501, allocations: 16.41 kB / 0.5651 GB, free: 11.97 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.893e-05/0.1502, allocations: 31.42 kB / 0.5651 GB, free: 11.94 MB / 430.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1502, allocations: 4 kB / 0.5651 GB, free: 11.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.1759, allocations: 2.474 MB / 0.5676 GB, free: 9.523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.262, allocations: 7.938 kB / 0.5676 GB, free: 9.516 MB / 430.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.302970414049923]