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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001171/0.001171, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 79.14 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1186, allocations: 62.45 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003405/0.122, allocations: 1.695 MB / 481.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.1231, allocations: 0.5805 MB / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.1233, allocations: 7.938 kB / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.1234, allocations: 11.86 kB / 482.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.124e-05/0.1235, allocations: 19.78 kB / 482.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.1238, allocations: 67.81 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.124, allocations: 111.7 kB / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.1242, allocations: 37.11 kB / 482.7 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.1244, allocations: 55.72 kB / 482.7 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/0.1245, allocations: 47.77 kB / 482.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.1245, allocations: 12 kB / 482.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.778e-05/0.1246, allocations: 19.98 kB / 482.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.078e-05/0.1247, allocations: 23.92 kB / 482.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.165e-05/0.1248, allocations: 51.73 kB / 482.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000235/0.125, allocations: 119.9 kB / 483 MB, free: 2.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.125, allocations: 0 / 483 MB, free: 2.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.125, allocations: 0 / 483 MB, free: 2.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.125, allocations: 4 kB / 483 MB, free: 2.32 MB / 350.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.0007887/0.1258, allocations: 423 kB / 483.4 MB, free: 1.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1259, allocations: 12.03 kB / 483.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.851e-05/0.1259, allocations: 42.67 kB / 483.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/0.1262, allocations: 24.83 kB / 483.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.1264, allocations: 212.2 kB / 483.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.1264, allocations: 8.375 kB / 483.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.1265, allocations: 11.94 kB / 483.7 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002355/0.1267, allocations: 97.58 kB / 483.8 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1267, allocations: 0 / 483.8 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.1268, allocations: 7.984 kB / 483.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.1268, allocations: 4 kB / 483.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.1269, allocations: 54.42 kB / 483.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006636/0.1276, allocations: 392.4 kB / 484.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.1278, allocations: 54.56 kB / 484.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.859e-05/0.1279, allocations: 28.98 kB / 484.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.1279, allocations: 7.938 kB / 484.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002206/0.1281, allocations: 103.3 kB / 484.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.1281, allocations: 0 / 484.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003634/0.1285, allocations: 129.4 kB / 484.6 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.1286, allocations: 55.41 kB / 484.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.1287, allocations: 149.9 kB / 484.8 MB, free: 352 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.1288, allocations: 29.7 kB / 484.8 MB, free: 316 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.345e-05/0.1288, allocations: 100 kB / 484.9 MB, free: 212 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/0.1289, allocations: 31.55 kB / 484.9 MB, free: 180 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.618e-05/0.129, allocations: 37.7 kB / 485 MB, free: 136 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1291, allocations: 318.8 kB / 485.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.775e-05/0.1292, allocations: 27.98 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.1293, allocations: 79.72 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.1295, allocations: 123.6 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1295, allocations: 4 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002588/0.1298, allocations: 141.5 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.1298, allocations: 4 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1298, allocations: 4 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.1298, allocations: 0 / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.13, allocations: 31.92 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.13, allocations: 4 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.783e-05/0.1301, allocations: 15.83 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.1301, allocations: 4 kB / 485.7 MB, free: 15.32 MB / 366.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.0001099/0.1302, allocations: 129.8 kB / 485.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.202e-05/0.1302, allocations: 15.88 kB / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.258e-05/0.1303, allocations: 24.69 kB / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1303, allocations: 0 / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1303, allocations: 384 / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1303, allocations: 0 / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.1305, allocations: 205.6 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1305, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.1306, allocations: 23.86 kB / 486.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1306, allocations: 0 / 486.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.1306, allocations: 8 kB / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1306, allocations: 4 kB / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1306, allocations: 3.938 kB / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.131, allocations: 172.8 kB / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.487e-05/0.1311, allocations: 88.98 kB / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.1311, allocations: 0 / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.454e-05/0.1312, allocations: 7.984 kB / 486.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.1312, allocations: 12.06 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.1312, allocations: 3.984 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.565e-05/0.1313, allocations: 110.3 kB / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1313, allocations: 0 / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002304/0.1315, allocations: 27.92 kB / 486.5 MB, free: 14.41 MB / 366.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.0005886/0.1321, allocations: 0.6982 MB / 487.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002303/0.1324, allocations: 79.83 kB / 487.3 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1324, allocations: 192 / 487.3 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.198e-05/0.1325, allocations: 39.86 kB / 487.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/0.1327, allocations: 16 kB / 487.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.1346, allocations: 1.688 MB / 489 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.135, allocations: 0.7157 MB / 489.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.586e-05/0.135, allocations: 12.56 kB / 489.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.543e-05/0.1351, allocations: 31.42 kB / 489.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1351, allocations: 0 / 489.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02239/0.1575, allocations: 2.414 MB / 492.2 MB, free: 8.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.758/8.915, allocations: 3.938 kB / 492.2 MB, free: 8.566 MB / 366.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches