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.001739/0.00174, allocations: 110.4 kB / 15.99 MB, free: 6.344 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.001678/0.001678, allocations: 195.4 kB / 16.91 MB, free: 6.176 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.438/1.438, allocations: 222.9 MB / 240.6 MB, free: 15.38 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.277/2.277, allocations: 390.2 MB / 0.665 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001436, allocations: 65.12 kB / 0.8127 GB, free: 33.21 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2813, allocations: 140.4 MB / 0.9498 GB, free: 9.207 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004206/0.2856, allocations: 2.559 MB / 0.9523 GB, free: 6.633 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.2869, allocations: 0.7674 MB / 0.953 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.2871, allocations: 4 kB / 0.953 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.2883, allocations: 0.5175 MB / 0.9535 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003168/0.2887, allocations: 91.67 kB / 0.9536 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.289, allocations: 91.83 kB / 0.9537 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002785/0.2893, allocations: 199.4 kB / 0.9539 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003914/0.2897, allocations: 201.9 kB / 0.9541 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.2898, allocations: 83.69 kB / 0.9542 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.29, allocations: 99.64 kB / 0.9543 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.2901, allocations: 12 kB / 0.9543 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002013/0.2903, allocations: 107.8 kB / 0.9544 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.557e-05/0.2904, allocations: 55.89 kB / 0.9544 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.477e-05/0.2905, allocations: 67.67 kB / 0.9545 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002557/0.2907, allocations: 183.8 kB / 0.9547 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2907, allocations: 0 / 0.9547 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.824e-06/0.2907, allocations: 0 / 0.9547 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.2908, allocations: 3.938 kB / 0.9547 GB, free: 4.16 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.000722/0.2915, allocations: 451.2 kB / 0.9551 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.2915, allocations: 12.03 kB / 0.9551 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004135/0.292, allocations: 40.81 kB / 0.9551 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002314/0.2922, allocations: 212.1 kB / 0.9554 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.2922, allocations: 12.66 kB / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.2923, allocations: 12.38 kB / 0.9554 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003843/0.2927, allocations: 231.2 kB / 0.9556 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.2927, allocations: 0 / 0.9556 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.2927, allocations: 4 kB / 0.9556 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.46e-05/0.2927, allocations: 24.27 kB / 0.9556 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.293, allocations: 148.7 kB / 0.9558 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.2941, allocations: 1.138 MB / 0.9569 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.582e-05/0.2942, allocations: 34.56 kB / 0.9569 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.35e-05/0.2942, allocations: 16.86 kB / 0.9569 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.2942, allocations: 0 / 0.9569 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.2943, allocations: 38.56 kB / 0.957 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.2943, allocations: 0 / 0.957 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0002019/0.2945, allocations: 81.55 kB / 0.957 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.2945, allocations: 51.41 kB / 0.9571 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.2947, allocations: 172.7 kB / 0.9573 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.2947, allocations: 25.7 kB / 0.9573 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.2948, allocations: 143.4 kB / 0.9574 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.593e-05/0.2948, allocations: 19.75 kB / 0.9574 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.955e-05/0.2949, allocations: 37.61 kB / 0.9575 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.295, allocations: 318.8 kB / 0.9578 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.766e-05/0.295, allocations: 24.84 kB / 0.9578 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.694e-05/0.2951, allocations: 93.36 kB / 0.9579 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.2953, allocations: 121.3 kB / 0.958 GB, free: 368 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2953, allocations: 0 / 0.958 GB, free: 368 kB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001958/0.2955, allocations: 133.6 kB / 0.9581 GB, free: 228 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2955, allocations: 14.06 kB / 0.9581 GB, free: 216 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2955, allocations: 0 / 0.9581 GB, free: 216 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.2955, allocations: 7.938 kB / 0.9582 GB, free: 208 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.2957, allocations: 27.98 kB / 0.9582 GB, free: 180 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.2957, allocations: 7.938 kB / 0.9582 GB, free: 172 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.448e-05/0.2957, allocations: 15.84 kB / 0.9582 GB, free: 156 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.2958, allocations: 4 kB / 0.9582 GB, free: 152 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.189e-05/0.2959, allocations: 131.5 kB / 0.9583 GB, free: 20 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.768e-05/0.296, allocations: 85.44 kB / 0.9584 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001155/0.2961, allocations: 121.2 kB / 0.9585 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.507e-06/0.2961, allocations: 3.984 kB / 0.9585 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001794/0.2963, allocations: 129.4 kB / 0.9587 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.2963, allocations: 4 kB / 0.9587 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.2963, allocations: 4 kB / 0.9587 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.821e-06/0.2963, allocations: 7.984 kB / 0.9587 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.867e-05/0.2964, allocations: 27.94 kB / 0.9587 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.2964, allocations: 7.938 kB / 0.9587 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.395e-05/0.2965, allocations: 7.906 kB / 0.9587 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.375e-06/0.2965, allocations: 12.3 kB / 0.9587 GB, free: 15.54 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 9.679e-05/0.2966, allocations: 192.1 kB / 0.9589 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.2966, allocations: 8.188 kB / 0.9589 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.2967, allocations: 16.88 kB / 0.9589 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2967, allocations: 7.922 kB / 0.9589 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.2967, allocations: 0 / 0.9589 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2967, allocations: 0 / 0.9589 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003959/0.2971, allocations: 481 kB / 0.9594 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2971, allocations: 0 / 0.9594 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.361e-05/0.2972, allocations: 7.984 kB / 0.9594 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.2972, allocations: 4 kB / 0.9594 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.2972, allocations: 4 kB / 0.9594 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2972, allocations: 4 kB / 0.9594 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2972, allocations: 0 / 0.9594 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001177/0.2973, allocations: 115.6 kB / 0.9595 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.492e-05/0.2974, allocations: 93 kB / 0.9596 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.2974, allocations: 0 / 0.9596 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.645e-05/0.2974, allocations: 4 kB / 0.9596 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.46e-05/0.2975, allocations: 4 kB / 0.9596 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.2975, allocations: 7.984 kB / 0.9596 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.922e-05/0.2976, allocations: 129.6 kB / 0.9598 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2976, allocations: 0 / 0.9598 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003585/0.2979, allocations: 51.84 kB / 0.9598 GB, free: 14.32 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 9.84e-05/0.298, allocations: 95.25 kB / 0.9599 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000193/0.2982, allocations: 124.3 kB / 0.96 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2982, allocations: 0 / 0.96 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.766e-05/0.2983, allocations: 19.92 kB / 0.96 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.2986, allocations: 25.47 kB / 0.9601 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005213/0.2991, allocations: 365.5 kB / 0.9604 GB, free: 13.65 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.2994, allocations: 0.728 MB / 0.9611 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.636e-05/0.2994, allocations: 15.44 kB / 0.9611 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/0.2994, allocations: 0 / 0.9611 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of Templates: time 0.003066/0.3025, allocations: 1.451 MB / 0.9625 GB, free: 11.43 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