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.001359/0.001359, allocations: 193.5 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 226.5 MB / 244.1 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007088/0.0007089, allocations: 110.8 kB / 296.1 MB, free: 6.855 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2874/0.2874, allocations: 44.82 MB / 392.9 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002534/0.0002534, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2741, allocations: 62.95 MB / 0.5165 GB, free: 37.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1026/0.3768, allocations: 87.84 MB / 0.6022 GB, free: 1.523 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001565/0.377, allocations: 67.97 kB / 0.6023 GB, free: 1.457 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005393/0.3824, allocations: 1.96 MB / 0.6042 GB, free: 15.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3824, allocations: 0 / 0.6042 GB, free: 15.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.3824, allocations: 4 kB / 0.6042 GB, free: 15.49 MB / 426.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.0004757/0.3829, allocations: 403.1 kB / 0.6046 GB, free: 15.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.383, allocations: 16.75 kB / 0.6046 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.3831, allocations: 28.83 kB / 0.6046 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.3834, allocations: 218.2 kB / 0.6049 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.3834, allocations: 8.312 kB / 0.6049 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.3835, allocations: 12.38 kB / 0.6049 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.3837, allocations: 97.77 kB / 0.605 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.3837, allocations: 0 / 0.605 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.3837, allocations: 3.984 kB / 0.605 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3837, allocations: 4 kB / 0.605 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.3839, allocations: 55.91 kB / 0.605 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005304/0.3844, allocations: 396.5 kB / 0.6054 GB, free: 14.13 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.3846, allocations: 62.59 kB / 0.6055 GB, free: 14.06 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.701e-05/0.3846, allocations: 24.95 kB / 0.6055 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.3847, allocations: 0 / 0.6055 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000189/0.3849, allocations: 107.3 kB / 0.6056 GB, free: 13.92 MB / 426.7 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.3849, allocations: 0 / 0.6056 GB, free: 13.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003322/0.3852, allocations: 137.4 kB / 0.6057 GB, free: 13.78 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.3853, allocations: 59.34 kB / 0.6058 GB, free: 13.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.3854, allocations: 143.5 kB / 0.6059 GB, free: 13.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.3854, allocations: 29.7 kB / 0.6059 GB, free: 13.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.053e-05/0.3855, allocations: 108.1 kB / 0.6061 GB, free: 13.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.3855, allocations: 27.64 kB / 0.6061 GB, free: 13.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.375e-06/0.3855, allocations: 4 kB / 0.6061 GB, free: 13.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3856, allocations: 322.8 kB / 0.6064 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.213e-05/0.3857, allocations: 23.98 kB / 0.6064 GB, free: 13.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.3858, allocations: 84.98 kB / 0.6065 GB, free: 12.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.386, allocations: 127.6 kB / 0.6066 GB, free: 12.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.386, allocations: 4.375 kB / 0.6066 GB, free: 12.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002526/0.3863, allocations: 145.3 kB / 0.6068 GB, free: 12.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3863, allocations: 14.95 kB / 0.6068 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.3863, allocations: 7.922 kB / 0.6068 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3864, allocations: 7.938 kB / 0.6068 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.3865, allocations: 31.92 kB / 0.6068 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.3865, allocations: 4 kB / 0.6068 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.96e-05/0.3866, allocations: 4 kB / 0.6068 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.3866, allocations: 8.188 kB / 0.6068 GB, free: 12.55 MB / 426.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 9.852e-05/0.3867, allocations: 129.7 kB / 0.607 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.133e-05/0.3867, allocations: 19.8 kB / 0.607 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.589e-05/0.3868, allocations: 12.66 kB / 0.607 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.3868, allocations: 7.938 kB / 0.607 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3868, allocations: 0 / 0.607 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3868, allocations: 0 / 0.607 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.387, allocations: 205.6 kB / 0.6072 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.387, allocations: 0 / 0.6072 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.511e-05/0.3871, allocations: 19.98 kB / 0.6072 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3871, allocations: 0 / 0.6072 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.3871, allocations: 7.938 kB / 0.6072 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.3871, allocations: 4 kB / 0.6072 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3871, allocations: 3.938 kB / 0.6072 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003028/0.3874, allocations: 168.9 kB / 0.6074 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.3875, allocations: 93.03 kB / 0.6075 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.3875, allocations: 3.938 kB / 0.6075 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.46e-05/0.3876, allocations: 8 kB / 0.6075 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.3876, allocations: 7.984 kB / 0.6075 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.3876, allocations: 4 kB / 0.6075 GB, free: 11.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.319e-05/0.3877, allocations: 114.1 kB / 0.6076 GB, free: 11.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3877, allocations: 0 / 0.6076 GB, free: 11.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002219/0.3879, allocations: 31.84 kB / 0.6076 GB, free: 11.62 MB / 426.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.0001225/0.3881, allocations: 107.3 kB / 0.6077 GB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002025/0.3883, allocations: 83.88 kB / 0.6078 GB, free: 11.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3883, allocations: 0 / 0.6078 GB, free: 11.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 8.797e-05/0.3884, allocations: 40.36 kB / 0.6079 GB, free: 11.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001987/0.3886, allocations: 19.92 kB / 0.6079 GB, free: 11.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005484/0.3892, allocations: 321.4 kB / 0.6082 GB, free: 11.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.3894, allocations: 0.7043 MB / 0.6089 GB, free: 10.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.108e-05/0.3895, allocations: 19.42 kB / 0.6089 GB, free: 10.27 MB / 426.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3895, allocations: 0 / 0.6089 GB, free: 10.27 MB / 426.7 MB Notification: Performance of Templates: time 0.002718/0.3922, allocations: 1.412 MB / 0.6103 GB, free: 8.863 MB / 426.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/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) Reference file matches