Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001535/0.001535, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001616/0.001616, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.394/1.394, 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.24/2.24, allocations: 390.3 MB / 0.6653 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002176/0.002176, allocations: 65.69 kB / 0.8132 GB, free: 33.07 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2924, allocations: 140.4 MB / 0.9503 GB, free: 8.898 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005568/0.2981, allocations: 3.078 MB / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002935/0.301, allocations: 1.737 MB / 0.955 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.3013, allocations: 7.938 kB / 0.955 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.3025, allocations: 326.7 kB / 0.9553 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0006437/0.3031, allocations: 215.1 kB / 0.9555 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005862/0.3037, allocations: 179.6 kB / 0.9557 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.3042, allocations: 319 kB / 0.956 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004565/0.3047, allocations: 244.9 kB / 0.9562 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.305, allocations: 131.6 kB / 0.9563 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004036/0.3054, allocations: 155.5 kB / 0.9565 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.809e-05/0.3054, allocations: 27.94 kB / 0.9565 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005227/0.306, allocations: 243.5 kB / 0.9567 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.3061, allocations: 99.77 kB / 0.9568 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.3063, allocations: 123.3 kB / 0.957 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007974/0.3071, allocations: 422.8 kB / 0.9574 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.3071, allocations: 0 / 0.9574 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.504e-06/0.3072, allocations: 4 kB / 0.9574 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.817e-05/0.3072, allocations: 0 / 0.9574 GB, free: 1.609 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001353/0.3085, allocations: 0.542 MB / 0.9579 GB, free: 1.02 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/0.3086, allocations: 12.03 kB / 0.9579 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008873/0.3095, allocations: 92.55 kB / 0.958 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004279/0.3099, allocations: 255.9 kB / 0.9582 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.31, allocations: 20.78 kB / 0.9583 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.3101, allocations: 28.56 kB / 0.9583 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006262/0.3107, allocations: 373.1 kB / 0.9586 GB, free: 188 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.3108, allocations: 4 kB / 0.9586 GB, free: 184 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/0.3108, allocations: 4 kB / 0.9586 GB, free: 180 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001124/0.3109, allocations: 32.41 kB / 0.9587 GB, free: 148 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005282/0.3115, allocations: 305.6 kB / 0.959 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.3135, allocations: 1.525 MB / 0.9605 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000433/0.3139, allocations: 234.4 kB / 0.9607 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.3141, allocations: 120.8 kB / 0.9608 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.3143, allocations: 89.03 kB / 0.9609 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.3143, allocations: 34.56 kB / 0.9609 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=18): time 3.737e-06/0.3143, allocations: 3.984 kB / 0.9609 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19): time 0.001337/0.3156, allocations: 0.7906 MB / 0.9617 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.3157, allocations: 63.33 kB / 0.9618 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.3159, allocations: 191.2 kB / 0.9619 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.316, allocations: 33.7 kB / 0.962 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.084e-05/0.3161, allocations: 155.8 kB / 0.9621 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.851e-05/0.3161, allocations: 74.98 kB / 0.9622 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.3162, allocations: 53.69 kB / 0.9622 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3164, allocations: 330.8 kB / 0.9626 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.3166, allocations: 111.9 kB / 0.9627 GB, free: 11.78 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.3168, allocations: 177.9 kB / 0.9628 GB, free: 11.58 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/0.3172, allocations: 301.7 kB / 0.9631 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3172, allocations: 0 / 0.9631 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007535/0.318, allocations: 416.2 kB / 0.9635 GB, free: 10.85 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.318, allocations: 4 kB / 0.9635 GB, free: 10.85 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.318, allocations: 4.188 kB / 0.9635 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004256/0.3185, allocations: 96.77 kB / 0.9636 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.3187, allocations: 55.89 kB / 0.9637 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.3207, allocations: 1.879 MB / 0.9655 GB, free: 8.676 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.321, allocations: 23.91 kB / 0.9655 GB, free: 8.652 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.321, allocations: 8 kB / 0.9655 GB, free: 8.645 MB / 0.7481 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.0002275/0.3212, allocations: 163.8 kB / 0.9657 GB, free: 8.477 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.744e-05/0.3213, allocations: 15.81 kB / 0.9657 GB, free: 8.461 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005867/0.3219, allocations: 301.8 kB / 0.966 GB, free: 8.164 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3219, allocations: 0 / 0.966 GB, free: 8.164 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.3219, allocations: 0 / 0.966 GB, free: 8.164 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.3219, allocations: 3.938 kB / 0.966 GB, free: 8.16 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.3231, allocations: 0.7015 MB / 0.9667 GB, free: 7.398 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3231, allocations: 64 / 0.9667 GB, free: 7.398 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003293/0.3235, allocations: 67.89 kB / 0.9667 GB, free: 7.332 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3235, allocations: 3.938 kB / 0.9668 GB, free: 7.328 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.3235, allocations: 7.938 kB / 0.9668 GB, free: 7.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3235, allocations: 0 / 0.9668 GB, free: 7.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3235, allocations: 3.984 kB / 0.9668 GB, free: 7.316 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006995/0.3242, allocations: 0.5163 MB / 0.9673 GB, free: 6.777 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.3244, allocations: 120.9 kB / 0.9674 GB, free: 6.641 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.393e-05/0.3244, allocations: 12.06 kB / 0.9674 GB, free: 6.629 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000185/0.3246, allocations: 7.984 kB / 0.9674 GB, free: 6.621 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.3247, allocations: 15.98 kB / 0.9674 GB, free: 6.605 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.3247, allocations: 4 kB / 0.9674 GB, free: 6.602 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001616/0.3249, allocations: 144.1 kB / 0.9676 GB, free: 6.457 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.3e-07/0.3249, allocations: 0 / 0.9676 GB, free: 6.457 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004058/0.3253, allocations: 64 kB / 0.9676 GB, free: 6.395 MB / 0.7481 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.00019/0.3255, allocations: 115.2 kB / 0.9677 GB, free: 6.273 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008758/0.3264, allocations: 442.3 kB / 0.9682 GB, free: 5.828 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3264, allocations: 0 / 0.9682 GB, free: 5.828 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.3266, allocations: 128.3 kB / 0.9683 GB, free: 5.703 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.327, allocations: 27.92 kB / 0.9683 GB, free: 5.676 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.3285, allocations: 0.6737 MB / 0.969 GB, free: 4.961 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.3289, allocations: 0.7753 MB / 0.9697 GB, free: 4.16 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.242e-05/0.329, allocations: 23.44 kB / 0.9697 GB, free: 4.137 MB / 0.7481 GB Notification: Performance of SimCode: time 6.11e-07/0.329, allocations: 0 / 0.9697 GB, free: 4.137 MB / 0.7481 GB Notification: Performance of Templates: time 0.006265/0.3353, allocations: 3.602 MB / 0.9733 GB, free: 0.543 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches