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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001418/0.001418, allocations: 100.1 kB / 15.88 MB, free: 12 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.001541/0.001541, allocations: 196.6 kB / 16.79 MB, free: 6.809 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.415/1.415, allocations: 222.9 MB / 240.5 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 390.2 MB / 0.6649 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002498/0.002498, allocations: 63.91 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7338/0.7363, allocations: 140.4 MB / 0.9496 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003248/0.7396, allocations: 2.553 MB / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00104/0.7407, allocations: 0.7777 MB / 0.9528 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.579e-05/0.7407, allocations: 5.625 kB / 0.9528 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009347/0.7417, allocations: 0.5053 MB / 0.9533 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.7419, allocations: 107.5 kB / 0.9534 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.7421, allocations: 102.1 kB / 0.9535 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.7424, allocations: 291.8 kB / 0.9538 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.7426, allocations: 117.9 kB / 0.9539 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.803e-05/0.7427, allocations: 64.34 kB / 0.954 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.7429, allocations: 108.8 kB / 0.9541 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.7429, allocations: 8.688 kB / 0.9541 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002228/0.7431, allocations: 140.5 kB / 0.9542 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.871e-05/0.7432, allocations: 47.55 kB / 0.9543 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.461e-05/0.7433, allocations: 75.58 kB / 0.9543 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.7434, allocations: 173.7 kB / 0.9545 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.7435, allocations: 0 / 0.9545 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.7435, allocations: 3.984 kB / 0.9545 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.265e-06/0.7435, allocations: 5.062 kB / 0.9545 GB, free: 5.473 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.000516/0.744, allocations: 436.6 kB / 0.9549 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.744, allocations: 9.125 kB / 0.9549 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003707/0.7444, allocations: 45.42 kB / 0.955 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.7446, allocations: 214.8 kB / 0.9552 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.7446, allocations: 14.38 kB / 0.9552 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.7447, allocations: 12.25 kB / 0.9552 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.745, allocations: 229.5 kB / 0.9554 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.745, allocations: 1.375 kB / 0.9554 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.745, allocations: 5.156 kB / 0.9554 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/0.7451, allocations: 16.14 kB / 0.9555 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.7453, allocations: 151.2 kB / 0.9556 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000766/0.7461, allocations: 1.126 MB / 0.9567 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.455e-05/0.7461, allocations: 42.84 kB / 0.9567 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.797e-05/0.7462, allocations: 19.59 kB / 0.9568 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.7462, allocations: 0 / 0.9568 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.149e-05/0.7462, allocations: 36.53 kB / 0.9568 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.7462, allocations: 0 / 0.9568 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001643/0.7464, allocations: 80.25 kB / 0.9569 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.783e-05/0.7464, allocations: 55.39 kB / 0.9569 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.7465, allocations: 176.8 kB / 0.9571 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.464e-06/0.7465, allocations: 25.7 kB / 0.9571 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.161e-05/0.7466, allocations: 140.8 kB / 0.9573 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.03e-05/0.7466, allocations: 17.41 kB / 0.9573 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.096e-05/0.7466, allocations: 35.2 kB / 0.9573 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.669e-05/0.7467, allocations: 322.7 kB / 0.9576 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.622e-05/0.7467, allocations: 32.19 kB / 0.9576 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.785e-05/0.7468, allocations: 85.78 kB / 0.9577 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001019/0.7469, allocations: 128 kB / 0.9578 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.7469, allocations: 1.781 kB / 0.9578 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001775/0.7471, allocations: 133.8 kB / 0.958 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.7471, allocations: 5.5 kB / 0.958 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.7471, allocations: 2.688 kB / 0.958 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.7472, allocations: 14.56 kB / 0.958 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.891e-05/0.7473, allocations: 28.25 kB / 0.958 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.7473, allocations: 3.938 kB / 0.958 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.7474, allocations: 25.19 kB / 0.958 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.7474, allocations: 5.844 kB / 0.9581 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.342e-05/0.7474, allocations: 128.2 kB / 0.9582 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.291e-05/0.7475, allocations: 86.55 kB / 0.9583 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 9.16e-05/0.7476, allocations: 119.3 kB / 0.9584 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.555e-06/0.7476, allocations: 1.375 kB / 0.9584 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001632/0.7478, allocations: 132.4 kB / 0.9585 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.156e-06/0.7478, allocations: 7.031 kB / 0.9585 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-06/0.7478, allocations: 7.438 kB / 0.9585 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.839e-06/0.7478, allocations: 3.188 kB / 0.9585 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.545e-05/0.7479, allocations: 31.98 kB / 0.9585 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.7479, allocations: 6.344 kB / 0.9586 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.836e-05/0.748, allocations: 8.594 kB / 0.9586 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.748, allocations: 6.469 kB / 0.9586 GB, free: 1.684 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 4.599e-05/0.748, allocations: 187 kB / 0.9587 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.7481, allocations: 8.125 kB / 0.9588 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.595e-05/0.7481, allocations: 21.05 kB / 0.9588 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.7481, allocations: 3.938 kB / 0.9588 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.7481, allocations: 1.281 kB / 0.9588 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.7481, allocations: 0 / 0.9588 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.7484, allocations: 481.6 kB / 0.9592 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.7484, allocations: 1.844 kB / 0.9592 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.369e-05/0.7485, allocations: 13.94 kB / 0.9593 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.7485, allocations: 1.219 kB / 0.9593 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.7485, allocations: 1.375 kB / 0.9593 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.7485, allocations: 1.344 kB / 0.9593 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.7485, allocations: 1.25 kB / 0.9593 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.658e-05/0.7486, allocations: 116 kB / 0.9594 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/0.7487, allocations: 88.73 kB / 0.9595 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.7487, allocations: 9.734 kB / 0.9595 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.61e-05/0.7487, allocations: 2.031 kB / 0.9595 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.875e-05/0.7487, allocations: 5.781 kB / 0.9595 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.7487, allocations: 1.938 kB / 0.9595 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.922e-05/0.7488, allocations: 130.5 kB / 0.9596 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7488, allocations: 0 / 0.9596 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003365/0.7492, allocations: 56 kB / 0.9597 GB, free: 0.6328 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 8.45e-05/0.7493, allocations: 95.66 kB / 0.9597 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001785/0.7494, allocations: 113.4 kB / 0.9598 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7495, allocations: 0 / 0.9598 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.485e-05/0.7495, allocations: 18.92 kB / 0.9599 GB, free: 500 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.7497, allocations: 21.7 kB / 0.9599 GB, free: 488 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004073/0.7501, allocations: 356.8 kB / 0.9602 GB, free: 172 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.7504, allocations: 0.7224 MB / 0.9609 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.517e-05/0.7504, allocations: 16.94 kB / 0.961 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.7504, allocations: 0 / 0.961 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of Templates: time 0.002763/0.7532, allocations: 1.447 MB / 0.9624 GB, free: 14.7 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/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