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: translateModel(ModelicaTest.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare") translateModel(ModelicaTest.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 197.9 kB / 16.1 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.6 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007437/0.0007437, allocations: 94.69 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3147/0.3147, allocations: 44.81 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003221/0.0003221, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3335, allocations: 62.95 MB / 0.5159 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.001379/0.335, allocations: 1.387 MB / 0.5172 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006816/0.3357, allocations: 0.532 MB / 0.5177 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.949e-05/0.3357, allocations: 0 / 0.5177 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.7e-05/0.3358, allocations: 11.25 kB / 0.5177 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.903e-05/0.3359, allocations: 11.05 kB / 0.5178 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.3361, allocations: 53.55 kB / 0.5178 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.3362, allocations: 110.7 kB / 0.5179 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.3364, allocations: 31.12 kB / 0.5179 GB, free: 35.47 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.3365, allocations: 32.84 kB / 0.518 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.5e-05/0.3366, allocations: 45.3 kB / 0.518 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.3366, allocations: 3.375 kB / 0.518 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.54e-05/0.3367, allocations: 11 kB / 0.518 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.225e-05/0.3368, allocations: 20.44 kB / 0.5181 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.782e-05/0.3368, allocations: 72.69 kB / 0.5181 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.337, allocations: 85.33 kB / 0.5182 GB, free: 35.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.337, allocations: 3.156 kB / 0.5182 GB, free: 35.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.337, allocations: 0 / 0.5182 GB, free: 35.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.337, allocations: 0 / 0.5182 GB, free: 35.34 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.0005271/0.3375, allocations: 400 kB / 0.5186 GB, free: 34.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.3376, allocations: 12.98 kB / 0.5186 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001817/0.3378, allocations: 29.7 kB / 0.5186 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.3379, allocations: 208.2 kB / 0.5188 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.338, allocations: 7.344 kB / 0.5188 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.734e-05/0.338, allocations: 13.78 kB / 0.5188 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.3382, allocations: 98.7 kB / 0.5189 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3382, allocations: 7.984 kB / 0.5189 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.3382, allocations: 0 / 0.5189 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3382, allocations: 6.781 kB / 0.519 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.3384, allocations: 57.52 kB / 0.519 GB, free: 34.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004659/0.3388, allocations: 400.1 kB / 0.5194 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.339, allocations: 58.62 kB / 0.5194 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.04e-05/0.339, allocations: 27.66 kB / 0.5195 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.3391, allocations: 2.906 kB / 0.5195 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001669/0.3392, allocations: 105.6 kB / 0.5196 GB, free: 34.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.3392, allocations: 0 / 0.5196 GB, free: 34.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002992/0.3395, allocations: 137.2 kB / 0.5197 GB, free: 34.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.3396, allocations: 58.38 kB / 0.5198 GB, free: 34.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9e-05/0.3397, allocations: 147.9 kB / 0.5199 GB, free: 33.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.3397, allocations: 25.7 kB / 0.5199 GB, free: 33.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.952e-05/0.3398, allocations: 109.7 kB / 0.52 GB, free: 33.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.3398, allocations: 30.08 kB / 0.5201 GB, free: 33.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.712e-06/0.3398, allocations: 0 / 0.5201 GB, free: 33.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.195e-05/0.3398, allocations: 325 kB / 0.5204 GB, free: 33.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.514e-05/0.3399, allocations: 25.17 kB / 0.5204 GB, free: 33.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.228e-05/0.34, allocations: 95.42 kB / 0.5205 GB, free: 33.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001449/0.3402, allocations: 122 kB / 0.5206 GB, free: 33.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3402, allocations: 0 / 0.5206 GB, free: 33.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002031/0.3404, allocations: 146.1 kB / 0.5207 GB, free: 33.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.3404, allocations: 9.594 kB / 0.5208 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3404, allocations: 3.062 kB / 0.5208 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.3404, allocations: 2.906 kB / 0.5208 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.3405, allocations: 23.42 kB / 0.5208 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.3406, allocations: 10.56 kB / 0.5208 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/0.3406, allocations: 17.39 kB / 0.5208 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.3407, allocations: 9.969 kB / 0.5208 GB, free: 33.16 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.93e-05/0.3407, allocations: 119.8 kB / 0.5209 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.3408, allocations: 18.62 kB / 0.5209 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.843e-05/0.3408, allocations: 8.719 kB / 0.521 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.3408, allocations: 2.406 kB / 0.521 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3408, allocations: 3.938 kB / 0.521 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3408, allocations: 4 kB / 0.521 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.3409, allocations: 213.3 kB / 0.5212 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3409, allocations: 0 / 0.5212 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.771e-05/0.341, allocations: 15.77 kB / 0.5212 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.341, allocations: 6.531 kB / 0.5212 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.3411, allocations: 3.281 kB / 0.5212 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3411, allocations: 0 / 0.5212 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3411, allocations: 2.875 kB / 0.5212 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002682/0.3413, allocations: 174.6 kB / 0.5214 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.676e-05/0.3414, allocations: 92.36 kB / 0.5215 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.3414, allocations: 4 kB / 0.5215 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.917e-05/0.3415, allocations: 6.984 kB / 0.5215 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.3415, allocations: 2.906 kB / 0.5215 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.3415, allocations: 6.25 kB / 0.5215 GB, free: 32.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.912e-05/0.3416, allocations: 121.7 kB / 0.5216 GB, free: 32.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3416, allocations: 0 / 0.5216 GB, free: 32.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001982/0.3418, allocations: 20.59 kB / 0.5216 GB, free: 32.48 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 8.746e-05/0.3419, allocations: 95.12 kB / 0.5217 GB, free: 32.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000183/0.3421, allocations: 83.36 kB / 0.5218 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3421, allocations: 4.062 kB / 0.5218 GB, free: 32.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.768e-05/0.3422, allocations: 41.73 kB / 0.5218 GB, free: 32.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/0.3424, allocations: 19.66 kB / 0.5218 GB, free: 32.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003941/0.3428, allocations: 321.2 kB / 0.5221 GB, free: 32.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.3429, allocations: 0.7066 MB / 0.5228 GB, free: 31.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.755e-05/0.3429, allocations: 20.31 kB / 0.5229 GB, free: 31.39 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3429, allocations: 0 / 0.5229 GB, free: 31.39 MB / 378.7 MB Notification: Performance of Templates: time 0.002283/0.3452, allocations: 1.4 MB / 0.5242 GB, free: 31.27 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.makefile (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 & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins/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) Reference file matches