Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002031/0.002031, allocations: 191.1 kB / 16.25 MB, free: 6.633 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.533/1.533, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.774/2.774, allocations: 472.7 MB / 0.7448 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 69.38 kB / 0.9116 GB, free: 33.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3116, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.006306/0.318, allocations: 3.124 MB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003387/0.3214, allocations: 1.71 MB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002857/0.3218, allocations: 8 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.3231, allocations: 315 kB / 1.073 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0007297/0.3239, allocations: 203.2 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005988/0.3245, allocations: 159.7 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005274/0.325, allocations: 319 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006294/0.3257, allocations: 272.9 kB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00027/0.326, allocations: 143.5 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004124/0.3264, allocations: 167.4 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.405e-05/0.3264, allocations: 23.94 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005138/0.327, allocations: 239.5 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.3271, allocations: 95.78 kB / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.3273, allocations: 131.4 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007039/0.328, allocations: 430.7 kB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.328, allocations: 4 kB / 1.075 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.064e-06/0.328, allocations: 4 kB / 1.075 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.787e-05/0.328, allocations: 4 kB / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001195/0.3292, allocations: 0.5381 MB / 1.075 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.3293, allocations: 12.03 kB / 1.075 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008245/0.3301, allocations: 96.45 kB / 1.076 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.3305, allocations: 248 kB / 1.076 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.3305, allocations: 12.81 kB / 1.076 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3307, allocations: 32.47 kB / 1.076 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006718/0.3313, allocations: 381.1 kB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.3314, allocations: 0 / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.156e-05/0.3314, allocations: 7.984 kB / 1.076 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/0.3315, allocations: 28.42 kB / 1.076 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005011/0.332, allocations: 309.5 kB / 1.076 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.3342, allocations: 1.529 MB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005795/0.3348, allocations: 226.3 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.335, allocations: 116.8 kB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002451/0.3352, allocations: 93.09 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.3353, allocations: 38.5 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.844e-06/0.3353, allocations: 0 / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001246/0.3365, allocations: 0.7902 MB / 1.079 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.3366, allocations: 59.41 kB / 1.079 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001885/0.3368, allocations: 195.1 kB / 1.079 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.3368, allocations: 33.7 kB / 1.079 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.958e-05/0.3369, allocations: 155.9 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.122e-05/0.337, allocations: 74.98 kB / 1.08 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.368e-05/0.3371, allocations: 53.61 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3372, allocations: 334.8 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.3374, allocations: 119.9 kB / 1.08 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.3377, allocations: 165.9 kB / 1.08 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003921/0.3381, allocations: 296 kB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.3381, allocations: 0 / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007943/0.3389, allocations: 419.6 kB / 1.081 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3389, allocations: 4 kB / 1.081 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.3389, allocations: 4 kB / 1.081 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004156/0.3393, allocations: 104.9 kB / 1.081 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.3396, allocations: 55.84 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/0.3417, allocations: 1.879 MB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/0.3419, allocations: 19.92 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.3419, allocations: 12 kB / 1.083 GB, free: 10.47 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.3422, allocations: 157.8 kB / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.011e-05/0.3422, allocations: 15.81 kB / 1.083 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006121/0.3429, allocations: 299.4 kB / 1.083 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3429, allocations: 0 / 1.083 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-06/0.3429, allocations: 0 / 1.083 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.3429, allocations: 12.11 kB / 1.084 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.344, allocations: 0.7041 MB / 1.084 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.344, allocations: 0 / 1.084 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/0.3443, allocations: 60.02 kB / 1.084 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.3443, allocations: 0 / 1.084 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.3444, allocations: 11.94 kB / 1.084 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3444, allocations: 0 / 1.084 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3444, allocations: 0 / 1.084 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006313/0.345, allocations: 0.5101 MB / 1.085 GB, free: 8.609 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.3451, allocations: 124.9 kB / 1.085 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.3452, allocations: 4 kB / 1.085 GB, free: 8.465 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.3454, allocations: 11.98 kB / 1.085 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.3454, allocations: 15.97 kB / 1.085 GB, free: 8.438 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.3455, allocations: 8 kB / 1.085 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001553/0.3456, allocations: 148 kB / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3456, allocations: 0 / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003751/0.346, allocations: 64 kB / 1.085 GB, free: 8.219 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * 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.0001809/0.3462, allocations: 111.2 kB / 1.085 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008338/0.347, allocations: 456.6 kB / 1.086 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.347, allocations: 0 / 1.086 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.3472, allocations: 124.2 kB / 1.086 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.3477, allocations: 47.48 kB / 1.086 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.349, allocations: 0.713 MB / 1.087 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.3494, allocations: 0.7714 MB / 1.087 GB, free: 5.938 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001866/0.3496, allocations: 61.91 kB / 1.087 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.456e-05/0.3497, allocations: 23.38 kB / 1.087 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of SimCode: time 3.91e-07/0.3497, allocations: 4 kB / 1.087 GB, free: 5.852 MB / 0.8419 GB Notification: Performance of Templates: time 0.006719/0.3564, allocations: 2.797 MB / 1.09 GB, free: 3.07 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches