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.001587/0.001587, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00269/0.00269, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.657/1.657, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.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.47/2.47, allocations: 390.2 MB / 0.6646 GB, free: 476 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 59.91 kB / 0.8125 GB, free: 14.48 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8864/0.8878, allocations: 140.4 MB / 0.9496 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003746/0.8916, allocations: 2.505 MB / 0.952 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.8929, allocations: 0.7658 MB / 0.9528 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.893, allocations: 2.906 kB / 0.9528 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001279/0.8943, allocations: 0.5304 MB / 0.9533 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003008/0.8946, allocations: 114.8 kB / 0.9534 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.895, allocations: 110.5 kB / 0.9535 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.8952, allocations: 194.3 kB / 0.9537 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003824/0.8956, allocations: 169.5 kB / 0.9538 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.677e-05/0.8957, allocations: 82.52 kB / 0.9539 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.896, allocations: 92.72 kB / 0.954 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.142e-05/0.896, allocations: 16.66 kB / 0.954 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.8962, allocations: 109.7 kB / 0.9541 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.604e-05/0.8963, allocations: 51.89 kB / 0.9542 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.353e-05/0.8964, allocations: 78.92 kB / 0.9543 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.8967, allocations: 221.2 kB / 0.9545 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.8967, allocations: 0 / 0.9545 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.786e-06/0.8967, allocations: 1.438 kB / 0.9545 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.844e-06/0.8967, allocations: 3.938 kB / 0.9545 GB, free: 5.457 MB / 0.7169 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.0006855/0.8974, allocations: 441 kB / 0.9549 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.8975, allocations: 13.62 kB / 0.9549 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004107/0.8979, allocations: 44.77 kB / 0.955 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/0.8981, allocations: 214.1 kB / 0.9552 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.8982, allocations: 14.64 kB / 0.9552 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.8982, allocations: 12.75 kB / 0.9552 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003974/0.8986, allocations: 225.1 kB / 0.9554 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.8986, allocations: 4.938 kB / 0.9554 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.8986, allocations: 6.188 kB / 0.9554 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.836e-05/0.8987, allocations: 15.64 kB / 0.9554 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.8989, allocations: 146.1 kB / 0.9556 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000923/0.8999, allocations: 1.132 MB / 0.9567 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.692e-05/0.8999, allocations: 36.94 kB / 0.9567 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.794e-05/0.9, allocations: 20.09 kB / 0.9567 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.9, allocations: 7.984 kB / 0.9567 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.9001, allocations: 38.56 kB / 0.9568 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.9001, allocations: 5.75 kB / 0.9568 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002235/0.9003, allocations: 75.5 kB / 0.9568 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.9003, allocations: 55.39 kB / 0.9569 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.9005, allocations: 176 kB / 0.9571 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.396e-06/0.9005, allocations: 25.7 kB / 0.9571 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.039e-05/0.9006, allocations: 144 kB / 0.9572 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.9006, allocations: 14.12 kB / 0.9572 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.491e-05/0.9007, allocations: 36.2 kB / 0.9573 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.859e-05/0.9008, allocations: 328.9 kB / 0.9576 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.321e-05/0.9008, allocations: 24.72 kB / 0.9576 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.615e-05/0.9009, allocations: 93.59 kB / 0.9577 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.901, allocations: 120.8 kB / 0.9578 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.9011, allocations: 0 / 0.9578 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002056/0.9013, allocations: 137.9 kB / 0.9579 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.9013, allocations: 6.719 kB / 0.958 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.9013, allocations: 3.5 kB / 0.958 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.9013, allocations: 7.125 kB / 0.958 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.9015, allocations: 24.33 kB / 0.958 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.9015, allocations: 6.688 kB / 0.958 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.168e-05/0.9016, allocations: 21.38 kB / 0.958 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.9016, allocations: 5.312 kB / 0.958 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000104/0.9017, allocations: 129.5 kB / 0.9581 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.517e-05/0.9018, allocations: 93.92 kB / 0.9582 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001187/0.9019, allocations: 122.6 kB / 0.9584 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.764e-06/0.9019, allocations: 5.266 kB / 0.9584 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001792/0.9021, allocations: 128.6 kB / 0.9585 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.9021, allocations: 6.406 kB / 0.9585 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.9021, allocations: 2.188 kB / 0.9585 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.368e-06/0.9021, allocations: 4.844 kB / 0.9585 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.932e-05/0.9022, allocations: 31.55 kB / 0.9585 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.9022, allocations: 11.47 kB / 0.9585 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.735e-05/0.9023, allocations: 6.781 kB / 0.9585 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.9023, allocations: 5.969 kB / 0.9585 GB, free: 1.652 MB / 0.7169 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 8.744e-05/0.9024, allocations: 188.4 kB / 0.9587 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.189e-05/0.9024, allocations: 8.094 kB / 0.9587 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.99e-05/0.9025, allocations: 16.39 kB / 0.9587 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.9025, allocations: 5.375 kB / 0.9588 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.9025, allocations: 0 / 0.9588 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.9025, allocations: 11.92 kB / 0.9588 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003899/0.9029, allocations: 478.5 kB / 0.9592 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.9029, allocations: 1.062 kB / 0.9592 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.308e-05/0.903, allocations: 5.438 kB / 0.9592 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.903, allocations: 2.156 kB / 0.9592 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.903, allocations: 1.188 kB / 0.9592 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.903, allocations: 5.25 kB / 0.9592 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.903, allocations: 0.9688 kB / 0.9592 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001304/0.9031, allocations: 115.2 kB / 0.9593 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.804e-05/0.9032, allocations: 94.45 kB / 0.9594 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.9032, allocations: 5.094 kB / 0.9594 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.523e-05/0.9033, allocations: 5.078 kB / 0.9594 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.9033, allocations: 6.125 kB / 0.9595 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.9033, allocations: 2.156 kB / 0.9595 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.891e-05/0.9034, allocations: 126.3 kB / 0.9596 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9034, allocations: 0 / 0.9596 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003437/0.9037, allocations: 51.72 kB / 0.9596 GB, free: 0.6055 MB / 0.7169 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.0001033/0.9039, allocations: 95.75 kB / 0.9597 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002319/0.9041, allocations: 117.5 kB / 0.9598 GB, free: 476 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.9041, allocations: 0 / 0.9598 GB, free: 476 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.618e-05/0.9041, allocations: 22.8 kB / 0.9598 GB, free: 464 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.9044, allocations: 18.98 kB / 0.9599 GB, free: 456 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000513/0.9049, allocations: 290 kB / 0.9601 GB, free: 212 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.9052, allocations: 0.7171 MB / 0.9608 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.66e-05/0.9054, allocations: 30.98 kB / 0.9609 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.218e-05/0.9054, allocations: 12.69 kB / 0.9609 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.9054, allocations: 1.25 kB / 0.9609 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of Templates: time 0.00363/0.909, allocations: 0.8336 MB / 0.9617 GB, free: 15.06 MB / 0.7325 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/jenkins/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