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.001641/0.001641, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001518/0.001518, allocations: 219.8 kB / 24.53 MB, free: 4.004 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.352/1.352, allocations: 230.5 MB / 258.2 MB, free: 8.016 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.2178/0.2178, allocations: 46.92 MB / 361.6 MB, free: 4.219 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.002305/0.002305, allocations: 83.86 kB / 0.497 GB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3367, allocations: 66.08 MB / 0.5615 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003006/0.3397, allocations: 1.7 MB / 0.5631 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.3408, allocations: 0.6086 MB / 0.5637 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.447e-05/0.3408, allocations: 8 kB / 0.5638 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.341, allocations: 11.86 kB / 0.5638 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.309e-05/0.341, allocations: 15.8 kB / 0.5638 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.3413, allocations: 67.81 kB / 0.5638 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.3415, allocations: 111.7 kB / 0.5639 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.3417, allocations: 27.12 kB / 0.564 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.3418, allocations: 59.78 kB / 0.564 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000117/0.3419, allocations: 47.77 kB / 0.5641 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.342, allocations: 12 kB / 0.5641 GB, free: 1.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.522e-05/0.342, allocations: 20 kB / 0.5641 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.496e-05/0.3421, allocations: 35.83 kB / 0.5641 GB, free: 1.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.243e-05/0.3421, allocations: 47.73 kB / 0.5642 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.3423, allocations: 127.5 kB / 0.5643 GB, free: 1.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3423, allocations: 0 / 0.5643 GB, free: 1.422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3423, allocations: 0 / 0.5643 GB, free: 1.422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3423, allocations: 0 / 0.5643 GB, free: 1.422 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.0007554/0.3431, allocations: 379.5 kB / 0.5647 GB, free: 1.016 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.3431, allocations: 8.031 kB / 0.5647 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.508e-05/0.3431, allocations: 192 / 0.5647 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.782e-05/0.3432, allocations: 42.73 kB / 0.5647 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.3434, allocations: 24.88 kB / 0.5647 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.3436, allocations: 150.9 kB / 0.5649 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.3436, allocations: 12.12 kB / 0.5649 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.406e-05/0.3436, allocations: 8 kB / 0.5649 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.3438, allocations: 93.64 kB / 0.565 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.3438, allocations: 0 / 0.565 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.3438, allocations: 7.938 kB / 0.565 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.3438, allocations: 0 / 0.565 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001318/0.344, allocations: 47.97 kB / 0.565 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005613/0.3445, allocations: 367.5 kB / 0.5654 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.3447, allocations: 54.5 kB / 0.5655 GB, free: 128 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.865e-05/0.3447, allocations: 32.98 kB / 0.5655 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.3447, allocations: 0 / 0.5655 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002144/0.345, allocations: 107.3 kB / 0.5656 GB, free: 15.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.192e-06/0.345, allocations: 0 / 0.5656 GB, free: 15.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003551/0.3453, allocations: 129.5 kB / 0.5657 GB, free: 15.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/0.3454, allocations: 55.34 kB / 0.5658 GB, free: 15.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.3455, allocations: 145.8 kB / 0.5659 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.3455, allocations: 37.69 kB / 0.5659 GB, free: 15.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.062e-05/0.3456, allocations: 104.2 kB / 0.566 GB, free: 15.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.439e-05/0.3456, allocations: 31.73 kB / 0.5661 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.491e-05/0.3457, allocations: 33.7 kB / 0.5661 GB, free: 15.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3458, allocations: 322.8 kB / 0.5664 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.634e-05/0.3459, allocations: 27.98 kB / 0.5664 GB, free: 15.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.346, allocations: 77.97 kB / 0.5665 GB, free: 14.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.3462, allocations: 127.6 kB / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3462, allocations: 0 / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002798/0.3465, allocations: 145.4 kB / 0.5668 GB, free: 14.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.3465, allocations: 8 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.3465, allocations: 0 / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3465, allocations: 7.984 kB / 0.5668 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.3467, allocations: 28.16 kB / 0.5668 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.3467, allocations: 3.984 kB / 0.5668 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.304e-05/0.3467, allocations: 11.95 kB / 0.5668 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.3468, allocations: 8 kB / 0.5668 GB, free: 14.58 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.000117/0.3469, allocations: 131 kB / 0.567 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.059e-05/0.3469, allocations: 11.89 kB / 0.567 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.936e-05/0.3469, allocations: 16.7 kB / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3469, allocations: 0 / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3469, allocations: 4 kB / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.3469, allocations: 0 / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.3471, allocations: 180.7 kB / 0.5672 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3471, allocations: 7.875 kB / 0.5672 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.229e-05/0.3472, allocations: 11.98 kB / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3472, allocations: 384 / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.3472, allocations: 4 kB / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3472, allocations: 0 / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3472, allocations: 0 / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003334/0.3476, allocations: 176.9 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.837e-05/0.3476, allocations: 11.92 kB / 0.5674 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.3476, allocations: 3.984 kB / 0.5674 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.19e-05/0.3477, allocations: 8 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.521e-05/0.3477, allocations: 3.984 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.3477, allocations: 4 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.86e-05/0.3478, allocations: 118.2 kB / 0.5675 GB, free: 13.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3478, allocations: 0 / 0.5675 GB, free: 13.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000212/0.348, allocations: 27.94 kB / 0.5675 GB, free: 13.8 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.0005907/0.3486, allocations: 0.7021 MB / 0.5682 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001925/0.3488, allocations: 76.27 kB / 0.5683 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3488, allocations: 4.062 kB / 0.5683 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.971e-05/0.3489, allocations: 31.98 kB / 0.5683 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001869/0.3491, allocations: 14.66 kB / 0.5683 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.3509, allocations: 1.706 MB / 0.57 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.3512, allocations: 0.7086 MB / 0.5707 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.705e-05/0.3513, allocations: 12.36 kB / 0.5707 GB, free: 10.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.674e-05/0.3513, allocations: 35.61 kB / 0.5707 GB, free: 10.33 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3513, allocations: 0 / 0.5707 GB, free: 10.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.3734, allocations: 2.658 MB / 0.5733 GB, free: 7.777 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.72, allocations: 15.36 kB / 0.5733 GB, free: 7.766 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.5853202730068]