Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 200.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 226.5 MB / 243.4 MB, free: 6.402 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007619/0.0007618, allocations: 92.44 kB / 295.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2726/0.2726, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002534/0.0002534, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2404, allocations: 62.97 MB / 0.516 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.001269/0.2417, allocations: 1.371 MB / 0.5173 GB, free: 36.16 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006095/0.2423, allocations: 0.5411 MB / 0.5178 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.37e-05/0.2424, allocations: 3.938 kB / 0.5178 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.296e-05/0.2425, allocations: 7.219 kB / 0.5178 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.597e-05/0.2426, allocations: 18.64 kB / 0.5179 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.2427, allocations: 43.91 kB / 0.5179 GB, free: 35.74 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001134/0.2429, allocations: 108.4 kB / 0.518 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.243, allocations: 33.03 kB / 0.518 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.2431, allocations: 42.09 kB / 0.5181 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.366e-05/0.2432, allocations: 39.67 kB / 0.5181 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.2432, allocations: 2.938 kB / 0.5181 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.409e-05/0.2433, allocations: 8.844 kB / 0.5181 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.601e-05/0.2433, allocations: 25.73 kB / 0.5181 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.396e-05/0.2434, allocations: 72.48 kB / 0.5182 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.84e-05/0.2435, allocations: 88.19 kB / 0.5183 GB, free: 35.53 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2435, allocations: 0 / 0.5183 GB, free: 35.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2435, allocations: 0 / 0.5183 GB, free: 35.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2435, allocations: 0 / 0.5183 GB, free: 35.53 MB / 378.7 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.0004727/0.244, allocations: 400.4 kB / 0.5187 GB, free: 35.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.244, allocations: 8.656 kB / 0.5187 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.588e-05/0.2441, allocations: 45.03 kB / 0.5187 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.2442, allocations: 29.61 kB / 0.5188 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.2444, allocations: 210.5 kB / 0.519 GB, free: 34.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.2444, allocations: 13.08 kB / 0.519 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.468e-05/0.2444, allocations: 13.5 kB / 0.519 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.2446, allocations: 90.98 kB / 0.5191 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.2446, allocations: 0 / 0.5191 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.2446, allocations: 10.44 kB / 0.5191 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2447, allocations: 2.531 kB / 0.5191 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001222/0.2448, allocations: 51.25 kB / 0.5191 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004269/0.2452, allocations: 393.7 kB / 0.5195 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.2453, allocations: 58.92 kB / 0.5196 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.957e-05/0.2454, allocations: 30.77 kB / 0.5196 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.2454, allocations: 3.984 kB / 0.5196 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001537/0.2456, allocations: 107 kB / 0.5197 GB, free: 34.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.2456, allocations: 0 / 0.5197 GB, free: 34.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002762/0.2459, allocations: 132.2 kB / 0.5198 GB, free: 34.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.26e-05/0.2459, allocations: 58.19 kB / 0.5199 GB, free: 34.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.039e-05/0.246, allocations: 146.7 kB / 0.52 GB, free: 34.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.246, allocations: 36.52 kB / 0.5201 GB, free: 34.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.135e-05/0.2461, allocations: 105.6 kB / 0.5202 GB, free: 33.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.2461, allocations: 25.66 kB / 0.5202 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-06/0.2461, allocations: 4 kB / 0.5202 GB, free: 33.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.108e-05/0.2461, allocations: 324 kB / 0.5205 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.418e-05/0.2462, allocations: 33.7 kB / 0.5205 GB, free: 33.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.598e-05/0.2463, allocations: 89.25 kB / 0.5206 GB, free: 33.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.2464, allocations: 130.1 kB / 0.5207 GB, free: 33.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2465, allocations: 4 kB / 0.5207 GB, free: 33.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002028/0.2467, allocations: 144.7 kB / 0.5209 GB, free: 33.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.888e-06/0.2467, allocations: 5.906 kB / 0.5209 GB, free: 33.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.2467, allocations: 3 kB / 0.5209 GB, free: 33.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.2467, allocations: 2.938 kB / 0.5209 GB, free: 33.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.2468, allocations: 26.58 kB / 0.5209 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.593e-05/0.2468, allocations: 6.469 kB / 0.5209 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.874e-05/0.2469, allocations: 11.97 kB / 0.5209 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.2469, allocations: 11.84 kB / 0.5209 GB, free: 33.31 MB / 378.7 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 ($PRE.mean1.y_last,mean1.y_last,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y_last,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.494e-05/0.247, allocations: 121.3 kB / 0.5211 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.483e-05/0.247, allocations: 13.44 kB / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.2471, allocations: 14.56 kB / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2471, allocations: 2.844 kB / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2471, allocations: 4 kB / 0.5211 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.2471, allocations: 0 / 0.5211 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.2472, allocations: 210.8 kB / 0.5213 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2472, allocations: 7.125 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.668e-05/0.2473, allocations: 12.72 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2473, allocations: 3.031 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.2473, allocations: 3.469 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2473, allocations: 0 / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2473, allocations: 0 / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002642/0.2476, allocations: 181 kB / 0.5215 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.172e-05/0.2476, allocations: 87.89 kB / 0.5216 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.2476, allocations: 0 / 0.5216 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.229e-05/0.2477, allocations: 11 kB / 0.5216 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.089e-05/0.2478, allocations: 10.05 kB / 0.5216 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.2478, allocations: 5.984 kB / 0.5216 GB, free: 32.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.665e-05/0.2478, allocations: 116.5 kB / 0.5217 GB, free: 32.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2478, allocations: 0 / 0.5217 GB, free: 32.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001945/0.248, allocations: 18.81 kB / 0.5217 GB, free: 32.64 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003663/0.2484, allocations: 0.7141 MB / 0.5224 GB, free: 31.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.2486, allocations: 76.86 kB / 0.5225 GB, free: 31.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2486, allocations: 0 / 0.5225 GB, free: 31.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.321e-05/0.2487, allocations: 39.5 kB / 0.5225 GB, free: 31.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/0.2488, allocations: 23.2 kB / 0.5226 GB, free: 31.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008706/0.2497, allocations: 0.8315 MB / 0.5234 GB, free: 31.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.633e-05/0.2498, allocations: 0.7039 MB / 0.5241 GB, free: 30.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.688e-05/0.2499, allocations: 35.84 kB / 0.5241 GB, free: 30.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2499, allocations: 0 / 0.5241 GB, free: 30.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.504/2.754, allocations: 1.75 MB / 0.5258 GB, free: 30.47 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_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.t0,mean1.u,mean1.x,mean1.x0,mean1.y,mean1.y0,mean1.yGreaterOrEqualZero,mean1.y_last,rootMeanSquare.f,rootMeanSquare.mean.f,rootMeanSquare.mean.t0,rootMeanSquare.mean.u,rootMeanSquare.mean.x,rootMeanSquare.mean.x0,rootMeanSquare.mean.y,rootMeanSquare.mean.y0,rootMeanSquare.mean.yGreaterOrEqualZero,rootMeanSquare.mean.y_last,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