Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 102.2 kB / 16.27 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 191 kB / 17.2 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 390.3 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 66.39 kB / 0.8132 GB, free: 33.02 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2891, allocations: 140.4 MB / 0.9503 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004461/0.2936, allocations: 2.502 MB / 0.9527 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.2951, allocations: 0.7751 MB / 0.9535 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.2953, allocations: 4 kB / 0.9535 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001342/0.2966, allocations: 0.5297 MB / 0.954 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003571/0.297, allocations: 107.5 kB / 0.9541 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003667/0.2974, allocations: 111.5 kB / 0.9542 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003116/0.2977, allocations: 199.4 kB / 0.9544 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004361/0.2981, allocations: 169.9 kB / 0.9546 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.2983, allocations: 79.7 kB / 0.9546 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.2986, allocations: 87.72 kB / 0.9547 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.236e-05/0.2986, allocations: 15.94 kB / 0.9547 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002331/0.2988, allocations: 119.8 kB / 0.9548 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.065e-05/0.2989, allocations: 51.89 kB / 0.9549 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.005e-05/0.299, allocations: 75.66 kB / 0.955 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003476/0.2994, allocations: 211.6 kB / 0.9552 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.2994, allocations: 8 kB / 0.9552 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2994, allocations: 0 / 0.9552 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.255e-05/0.2994, allocations: 0 / 0.9552 GB, free: 3.844 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0007177/0.3001, allocations: 451.2 kB / 0.9556 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.3002, allocations: 8.031 kB / 0.9556 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004146/0.3006, allocations: 48.8 kB / 0.9557 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.3009, allocations: 212.1 kB / 0.9559 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.3009, allocations: 16.59 kB / 0.9559 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.3009, allocations: 12.38 kB / 0.9559 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.3013, allocations: 223.3 kB / 0.9561 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3013, allocations: 4 kB / 0.9561 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.354e-05/0.3013, allocations: 8 kB / 0.9561 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-05/0.3013, allocations: 20.2 kB / 0.9561 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.3016, allocations: 144.7 kB / 0.9563 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.3027, allocations: 1.134 MB / 0.9574 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.765e-05/0.3028, allocations: 42.56 kB / 0.9574 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.362e-05/0.3028, allocations: 16.95 kB / 0.9574 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.3029, allocations: 7.984 kB / 0.9574 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.3029, allocations: 30.56 kB / 0.9575 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.313e-06/0.3029, allocations: 0 / 0.9575 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0002101/0.3031, allocations: 81.47 kB / 0.9575 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.3032, allocations: 51.41 kB / 0.9576 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.3033, allocations: 171.1 kB / 0.9578 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.3033, allocations: 25.7 kB / 0.9578 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.3034, allocations: 139.4 kB / 0.9579 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.3034, allocations: 23.73 kB / 0.9579 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/0.3035, allocations: 37.55 kB / 0.958 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3036, allocations: 326.8 kB / 0.9583 GB, free: 344 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.633e-05/0.3036, allocations: 20.86 kB / 0.9583 GB, free: 320 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.083e-05/0.3037, allocations: 89.42 kB / 0.9584 GB, free: 196 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.3039, allocations: 125.2 kB / 0.9585 GB, free: 36 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3039, allocations: 0 / 0.9585 GB, free: 36 kB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002163/0.3041, allocations: 137.5 kB / 0.9586 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3041, allocations: 8 kB / 0.9586 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3041, allocations: 0 / 0.9586 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.3042, allocations: 7.938 kB / 0.9587 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.3043, allocations: 23.98 kB / 0.9587 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.3043, allocations: 4 kB / 0.9587 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.734e-05/0.3044, allocations: 19.78 kB / 0.9587 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.3044, allocations: 8 kB / 0.9587 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001034/0.3045, allocations: 124.1 kB / 0.9588 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.219e-05/0.3046, allocations: 89.59 kB / 0.9589 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001177/0.3047, allocations: 121.3 kB / 0.959 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.192e-06/0.3047, allocations: 0 / 0.959 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001888/0.3049, allocations: 137.3 kB / 0.9592 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.3049, allocations: 6.656 kB / 0.9592 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.3049, allocations: 4 kB / 0.9592 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.779e-06/0.3049, allocations: 4 kB / 0.9592 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.522e-05/0.305, allocations: 28.22 kB / 0.9592 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.3051, allocations: 12.17 kB / 0.9592 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.354e-05/0.3051, allocations: 15.91 kB / 0.9592 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.3051, allocations: 8 kB / 0.9592 GB, free: 15.21 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001095/0.3053, allocations: 192.1 kB / 0.9594 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.267e-05/0.3053, allocations: 7.906 kB / 0.9594 GB, free: 15 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.05e-05/0.3053, allocations: 16.92 kB / 0.9594 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.3053, allocations: 3.938 kB / 0.9594 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.3054, allocations: 3.938 kB / 0.9594 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.3054, allocations: 3.984 kB / 0.9595 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004094/0.3058, allocations: 473.1 kB / 0.9599 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3058, allocations: 4 kB / 0.9599 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.3058, allocations: 7.938 kB / 0.9599 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.3059, allocations: 4 kB / 0.9599 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.3059, allocations: 0 / 0.9599 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.3059, allocations: 0 / 0.9599 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.3059, allocations: 8.125 kB / 0.9599 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.306, allocations: 111.5 kB / 0.96 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.962e-05/0.3061, allocations: 89.02 kB / 0.9601 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.3061, allocations: 3.938 kB / 0.9601 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.692e-05/0.3062, allocations: 4 kB / 0.9601 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.947e-05/0.3062, allocations: 7.984 kB / 0.9601 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-06/0.3062, allocations: 0 / 0.9601 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 9.594e-05/0.3063, allocations: 132.9 kB / 0.9603 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.51e-07/0.3063, allocations: 0 / 0.9603 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000369/0.3067, allocations: 51.84 kB / 0.9603 GB, free: 13.98 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.00011/0.3068, allocations: 98.06 kB / 0.9604 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002281/0.307, allocations: 115.6 kB / 0.9605 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.307, allocations: 4 kB / 0.9605 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.657e-05/0.3071, allocations: 15.92 kB / 0.9605 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.3074, allocations: 25.48 kB / 0.9606 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007103/0.3081, allocations: 316.7 kB / 0.9609 GB, free: 13.37 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.3085, allocations: 0.7202 MB / 0.9616 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.71e-05/0.3086, allocations: 19.44 kB / 0.9616 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of SimCode: time 6.21e-07/0.3086, allocations: 0 / 0.9616 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of Templates: time 0.003837/0.3124, allocations: 1.441 MB / 0.963 GB, free: 11.16 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches