Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 119 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001781/0.001781, allocations: 190.9 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2412/0.2412, allocations: 44.92 MB / 349.6 MB, free: 1.699 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 73.05 kB / 491.8 MB, free: 29.89 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1383, allocations: 64.26 MB / 0.543 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002911/0.1412, allocations: 1.663 MB / 0.5446 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000937/0.1422, allocations: 0.5454 MB / 0.5452 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.281e-05/0.1423, allocations: 4 kB / 0.5452 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001011/0.1424, allocations: 11.86 kB / 0.5452 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.317e-05/0.1424, allocations: 15.8 kB / 0.5452 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002685/0.1427, allocations: 59.81 kB / 0.5452 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.1428, allocations: 111.7 kB / 0.5453 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.143, allocations: 33.66 kB / 0.5454 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.881e-05/0.1431, allocations: 43.8 kB / 0.5454 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.1432, allocations: 51.75 kB / 0.5455 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.577e-05/0.1432, allocations: 12 kB / 0.5455 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.996e-05/0.1432, allocations: 8 kB / 0.5455 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.516e-05/0.1433, allocations: 27.86 kB / 0.5455 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.889e-05/0.1434, allocations: 47.73 kB / 0.5456 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00017/0.1435, allocations: 107.5 kB / 0.5457 GB, free: 1.348 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1435, allocations: 0 / 0.5457 GB, free: 1.348 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1435, allocations: 0 / 0.5457 GB, free: 1.348 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.1435, allocations: 4 kB / 0.5457 GB, free: 1.344 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.0007521/0.1443, allocations: 422.9 kB / 0.5461 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1443, allocations: 8.031 kB / 0.5461 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.026e-05/0.1444, allocations: 38.75 kB / 0.5461 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.905e-05/0.1444, allocations: 16.88 kB / 0.5461 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.1447, allocations: 204.1 kB / 0.5463 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.1447, allocations: 8.375 kB / 0.5463 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.1447, allocations: 16.38 kB / 0.5463 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002129/0.145, allocations: 89.77 kB / 0.5464 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.145, allocations: 0 / 0.5464 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.145, allocations: 4 kB / 0.5464 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.145, allocations: 4 kB / 0.5464 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001427/0.1451, allocations: 54.2 kB / 0.5465 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005973/0.1457, allocations: 384.5 kB / 0.5469 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.1459, allocations: 58.5 kB / 0.5469 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.151e-05/0.146, allocations: 28.98 kB / 0.5469 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.146, allocations: 0 / 0.5469 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.1462, allocations: 99.3 kB / 0.547 GB, free: 15.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.1462, allocations: 0 / 0.547 GB, free: 15.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003587/0.1465, allocations: 129.8 kB / 0.5472 GB, free: 15.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.1466, allocations: 59.34 kB / 0.5472 GB, free: 15.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.1467, allocations: 135.9 kB / 0.5473 GB, free: 15.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.1467, allocations: 33.73 kB / 0.5474 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.055e-05/0.1468, allocations: 108.1 kB / 0.5475 GB, free: 15.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.1468, allocations: 35.8 kB / 0.5475 GB, free: 15.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.556e-05/0.1469, allocations: 29.72 kB / 0.5475 GB, free: 15.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1471, allocations: 318.8 kB / 0.5478 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.069e-05/0.1471, allocations: 23.98 kB / 0.5479 GB, free: 14.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.1472, allocations: 91.64 kB / 0.548 GB, free: 14.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.1474, allocations: 119.6 kB / 0.5481 GB, free: 14.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1474, allocations: 0 / 0.5481 GB, free: 14.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002504/0.1477, allocations: 145.4 kB / 0.5482 GB, free: 14.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1477, allocations: 8 kB / 0.5482 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1477, allocations: 0 / 0.5482 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1477, allocations: 12.16 kB / 0.5482 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.1478, allocations: 23.92 kB / 0.5483 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.1479, allocations: 4 kB / 0.5483 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.237e-05/0.1479, allocations: 11.95 kB / 0.5483 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.1479, allocations: 8 kB / 0.5483 GB, free: 14.38 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.0001153/0.1481, allocations: 129.8 kB / 0.5484 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.781e-05/0.1481, allocations: 7.953 kB / 0.5484 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.595e-05/0.1481, allocations: 8.719 kB / 0.5484 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.1481, allocations: 11.94 kB / 0.5484 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1481, allocations: 0 / 0.5484 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1481, allocations: 0 / 0.5484 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.1483, allocations: 213.5 kB / 0.5486 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1483, allocations: 0 / 0.5486 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.548e-05/0.1484, allocations: 15.98 kB / 0.5486 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.1484, allocations: 4 kB / 0.5487 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.1484, allocations: 3.938 kB / 0.5487 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1484, allocations: 3.938 kB / 0.5487 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1484, allocations: 0 / 0.5487 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003251/0.1488, allocations: 169 kB / 0.5488 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/0.1488, allocations: 89.08 kB / 0.5489 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.1488, allocations: 0 / 0.5489 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.523e-05/0.1489, allocations: 11.94 kB / 0.5489 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.136e-05/0.149, allocations: 8.078 kB / 0.5489 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.149, allocations: 3.938 kB / 0.5489 GB, free: 13.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.555e-05/0.149, allocations: 107.2 kB / 0.549 GB, free: 13.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.149, allocations: 4.062 kB / 0.549 GB, free: 13.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002151/0.1493, allocations: 20 kB / 0.5491 GB, free: 13.49 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.0006293/0.1499, allocations: 0.6982 MB / 0.5497 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002277/0.1501, allocations: 79.89 kB / 0.5498 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1501, allocations: 4 kB / 0.5498 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.773e-05/0.1502, allocations: 23.98 kB / 0.5498 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001944/0.1504, allocations: 17.97 kB / 0.5499 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001902/0.1523, allocations: 1.653 MB / 0.5515 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.1526, allocations: 0.7002 MB / 0.5522 GB, free: 10.13 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.123e-05/0.1527, allocations: 17.11 kB / 0.5522 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.255e-05/0.1527, allocations: 31.42 kB / 0.5522 GB, free: 10.09 MB / 414.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1527, allocations: 3.938 kB / 0.5522 GB, free: 10.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/0.1798, allocations: 2.333 MB / 0.5545 GB, free: 7.824 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.776/7.956, allocations: 8 kB / 0.5545 GB, free: 7.816 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --stepSize=0.0003996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_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.032499230932444]