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.001662/0.001662, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001954/0.001954, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2123/0.2123, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 71.89 kB / 480.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3321, allocations: 62.44 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002645/0.3347, allocations: 1.69 MB / 0.5322 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009519/0.3357, allocations: 0.5864 MB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.496e-05/0.3358, allocations: 1.719 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.969e-05/0.3359, allocations: 7.875 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.756e-05/0.336, allocations: 26.38 kB / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.3363, allocations: 67.75 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001515/0.3364, allocations: 121.4 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.3366, allocations: 39.81 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.3367, allocations: 48.23 kB / 0.533 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.3368, allocations: 60.53 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.3368, allocations: 9.781 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.402e-05/0.3369, allocations: 15.88 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.6e-05/0.3369, allocations: 27.61 kB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.391e-05/0.337, allocations: 52.33 kB / 0.5332 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001676/0.3372, allocations: 120.9 kB / 0.5333 GB, free: 11.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3372, allocations: 4 kB / 0.5333 GB, free: 11.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3372, allocations: 2.25 kB / 0.5333 GB, free: 11.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.3372, allocations: 0 / 0.5333 GB, free: 11.24 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.0006734/0.3379, allocations: 422.2 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.3379, allocations: 14.47 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.409e-05/0.338, allocations: 41.61 kB / 0.5338 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.3382, allocations: 25.92 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.3384, allocations: 204.9 kB / 0.534 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.3384, allocations: 11.12 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.3385, allocations: 14.81 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.3387, allocations: 87.89 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3387, allocations: 0 / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.3387, allocations: 13.36 kB / 0.5341 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3387, allocations: 1.375 kB / 0.5341 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001328/0.3389, allocations: 51.41 kB / 0.5342 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005139/0.3394, allocations: 387.4 kB / 0.5345 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001291/0.3395, allocations: 61.88 kB / 0.5346 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.615e-05/0.3396, allocations: 29.27 kB / 0.5346 GB, free: 9.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.3396, allocations: 1.375 kB / 0.5346 GB, free: 9.977 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001819/0.3398, allocations: 100.2 kB / 0.5347 GB, free: 9.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.3398, allocations: 0 / 0.5347 GB, free: 9.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003346/0.3402, allocations: 137.7 kB / 0.5348 GB, free: 9.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.3402, allocations: 58.16 kB / 0.5349 GB, free: 9.742 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.3403, allocations: 137.3 kB / 0.535 GB, free: 9.625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.3404, allocations: 31.08 kB / 0.5351 GB, free: 9.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.487e-05/0.3404, allocations: 113.5 kB / 0.5352 GB, free: 9.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.3405, allocations: 30.34 kB / 0.5352 GB, free: 9.453 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.126e-05/0.3405, allocations: 36.7 kB / 0.5352 GB, free: 9.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.719e-05/0.3406, allocations: 325.6 kB / 0.5355 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.969e-05/0.3407, allocations: 25.73 kB / 0.5356 GB, free: 9.086 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.88e-05/0.3408, allocations: 81.41 kB / 0.5356 GB, free: 9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.341, allocations: 125.5 kB / 0.5358 GB, free: 8.887 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.341, allocations: 0 / 0.5358 GB, free: 8.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002514/0.3412, allocations: 149.2 kB / 0.5359 GB, free: 8.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3413, allocations: 6.375 kB / 0.5359 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3413, allocations: 2.188 kB / 0.5359 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3413, allocations: 2.469 kB / 0.5359 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.3414, allocations: 26.33 kB / 0.5359 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.954e-06/0.3414, allocations: 2.625 kB / 0.5359 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.637e-05/0.3415, allocations: 13.23 kB / 0.536 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.3415, allocations: 13.28 kB / 0.536 GB, free: 8.77 MB / 398.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 9.438e-05/0.3416, allocations: 126.1 kB / 0.5361 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.255e-05/0.3417, allocations: 12.88 kB / 0.5361 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.649e-05/0.3417, allocations: 15.02 kB / 0.5361 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3417, allocations: 1.188 kB / 0.5361 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3417, allocations: 0 / 0.5361 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3417, allocations: 0 / 0.5361 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.3419, allocations: 208.3 kB / 0.5363 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3419, allocations: 4 kB / 0.5363 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.851e-05/0.342, allocations: 17.02 kB / 0.5363 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.342, allocations: 1.125 kB / 0.5363 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.342, allocations: 1.156 kB / 0.5363 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.3421, allocations: 1.094 kB / 0.5363 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3421, allocations: 0 / 0.5363 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.3424, allocations: 173 kB / 0.5365 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.103e-05/0.3424, allocations: 95.23 kB / 0.5366 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.3425, allocations: 2.188 kB / 0.5366 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.969e-05/0.3425, allocations: 14.23 kB / 0.5366 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.463e-05/0.3426, allocations: 7.484 kB / 0.5366 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.3426, allocations: 6.406 kB / 0.5366 GB, free: 8.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.395e-05/0.3427, allocations: 113.4 kB / 0.5367 GB, free: 8.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3427, allocations: 0 / 0.5367 GB, free: 8.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002267/0.3429, allocations: 19.98 kB / 0.5367 GB, free: 8.031 MB / 398.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.0005302/0.3434, allocations: 0.7045 MB / 0.5374 GB, free: 7.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002033/0.3437, allocations: 76.56 kB / 0.5375 GB, free: 7.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3437, allocations: 0.9688 kB / 0.5375 GB, free: 7.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.604e-05/0.3438, allocations: 37.44 kB / 0.5375 GB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/0.344, allocations: 16.02 kB / 0.5376 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.3458, allocations: 1.692 MB / 0.5392 GB, free: 5.805 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.346, allocations: 0.7016 MB / 0.5399 GB, free: 5.098 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.208e-05/0.3461, allocations: 20.23 kB / 0.5399 GB, free: 5.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.474e-05/0.3461, allocations: 36.8 kB / 0.54 GB, free: 5.055 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3461, allocations: 0 / 0.54 GB, free: 5.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0195/0.3657, allocations: 2.497 MB / 0.5424 GB, free: 3.727 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.413/7.779, allocations: 4.562 kB / 0.5424 GB, free: 3.727 MB / 398.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) "" Variables in the reference:time,mean1.x,rootMeanSquare.mean.x,mean1.y,rootMeanSquare.mean.y Variables in the result:der(mean1.x),der(rootMeanSquare.mean.x),expSine.amplitude,expSine.damping,expSine.f,expSine.offset,expSine.phase,expSine.startTime,expSine.y,mean1.f,mean1.u,mean1.x,mean1.x0,mean1.y,mean1.y0,mean1.yGreaterOrEqualZero,rootMeanSquare.f,rootMeanSquare.mean.f,rootMeanSquare.mean.u,rootMeanSquare.mean.x,rootMeanSquare.mean.x0,rootMeanSquare.mean.y,rootMeanSquare.mean.y0,rootMeanSquare.mean.yGreaterOrEqualZero,rootMeanSquare.product.nu,rootMeanSquare.product.significantDigits,rootMeanSquare.product.u[1],rootMeanSquare.product.u[2],rootMeanSquare.product.y,rootMeanSquare.sqrt1.u,rootMeanSquare.sqrt1.y,rootMeanSquare.u,rootMeanSquare.x0,rootMeanSquare.y,rootMeanSquare.y0,time