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.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.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.0008302/0.0008306, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0009666/0.0009667, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.3 MB / 240 MB, free: 5.43 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.523/2.523, allocations: 390.9 MB / 0.666 GB, free: 2.453 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003955, allocations: 12 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.908/0.9084, allocations: 142.4 MB / 0.9544 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003971/0.9125, allocations: 2.676 MB / 0.957 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002751/0.9153, allocations: 1.597 MB / 0.9586 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.9155, allocations: 8.062 kB / 0.9586 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.9157, allocations: 36.8 kB / 0.9587 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005191/0.9162, allocations: 156.7 kB / 0.9588 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.9167, allocations: 144.4 kB / 0.9589 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000431/0.9171, allocations: 373 kB / 0.9593 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009/0.918, allocations: 0.4969 MB / 0.9598 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002588/0.9183, allocations: 109.2 kB / 0.9599 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003465/0.9186, allocations: 144.1 kB / 0.96 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.398e-05/0.9187, allocations: 11 kB / 0.96 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003355/0.919, allocations: 146.2 kB / 0.9602 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.9191, allocations: 90.03 kB / 0.9603 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.865e-05/0.9192, allocations: 65.17 kB / 0.9603 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004091/0.9196, allocations: 319 kB / 0.9606 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.9197, allocations: 1 kB / 0.9606 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.675e-06/0.9197, allocations: 0 / 0.9606 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.9197, allocations: 0 / 0.9606 GB, free: 3.078 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009507/0.9206, allocations: 0.4989 MB / 0.9611 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/0.9207, allocations: 9.438 kB / 0.9611 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007607/0.9215, allocations: 96.14 kB / 0.9612 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.9218, allocations: 253.9 kB / 0.9615 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.9219, allocations: 12.53 kB / 0.9615 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.922, allocations: 28.52 kB / 0.9615 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006585/0.9227, allocations: 373.3 kB / 0.9618 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.9227, allocations: 3.938 kB / 0.9619 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.9227, allocations: 11.3 kB / 0.9619 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.9228, allocations: 31.72 kB / 0.9619 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/0.9233, allocations: 301.4 kB / 0.9622 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.925, allocations: 1.545 MB / 0.9637 GB, free: 440 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/0.9255, allocations: 228.7 kB / 0.9639 GB, free: 312 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.9257, allocations: 115.3 kB / 0.964 GB, free: 248 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001294/0.9258, allocations: 87.64 kB / 0.9641 GB, free: 148 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.9258, allocations: 35.53 kB / 0.9641 GB, free: 104 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.663e-06/0.9259, allocations: 1.438 kB / 0.9641 GB, free: 104 kB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.001417/0.9273, allocations: 0.787 MB / 0.9649 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.9273, allocations: 57.58 kB / 0.965 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002298/0.9276, allocations: 193.2 kB / 0.9651 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.9276, allocations: 30.67 kB / 0.9652 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.9277, allocations: 163.2 kB / 0.9653 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.032e-05/0.9278, allocations: 71.75 kB / 0.9654 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.111e-05/0.9279, allocations: 5.938 kB / 0.9654 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.928, allocations: 326.5 kB / 0.9657 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.9282, allocations: 112.6 kB / 0.9658 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.9285, allocations: 170.4 kB / 0.966 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/0.9287, allocations: 140.4 kB / 0.9661 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.9287, allocations: 0.9688 kB / 0.9661 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007924/0.9295, allocations: 412.3 kB / 0.9665 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.9296, allocations: 10.03 kB / 0.9665 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.9296, allocations: 2 kB / 0.9665 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/0.93, allocations: 94.36 kB / 0.9666 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.9303, allocations: 53.61 kB / 0.9667 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.9322, allocations: 1.749 MB / 0.9684 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.9324, allocations: 18.62 kB / 0.9684 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.9325, allocations: 7.969 kB / 0.9684 GB, free: 12.61 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002175/0.9327, allocations: 165 kB / 0.9686 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.011e-05/0.9327, allocations: 16.59 kB / 0.9686 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005452/0.9333, allocations: 304.4 kB / 0.9689 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.9333, allocations: 2.156 kB / 0.9689 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.9333, allocations: 0 / 0.9689 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.9333, allocations: 1 kB / 0.9689 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001126/0.9345, allocations: 0.6973 MB / 0.9695 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.9345, allocations: 0 / 0.9695 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002981/0.9348, allocations: 58.89 kB / 0.9696 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.9348, allocations: 5.094 kB / 0.9696 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.9348, allocations: 10.31 kB / 0.9696 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.9348, allocations: 6.391 kB / 0.9696 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.9349, allocations: 0.9688 kB / 0.9696 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006935/0.9356, allocations: 0.5064 MB / 0.9701 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.9357, allocations: 115.9 kB / 0.9702 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.9357, allocations: 10.84 kB / 0.9702 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.9359, allocations: 14.64 kB / 0.9703 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/0.9359, allocations: 9.484 kB / 0.9703 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.936, allocations: 9.25 kB / 0.9703 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001598/0.9361, allocations: 149.8 kB / 0.9704 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.61e-07/0.9361, allocations: 0 / 0.9704 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004378/0.9366, allocations: 62.38 kB / 0.9705 GB, free: 11.08 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001952/0.9368, allocations: 118.9 kB / 0.9706 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008491/0.9376, allocations: 422.3 kB / 0.971 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.9376, allocations: 0 / 0.971 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.9378, allocations: 126.3 kB / 0.9711 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004171/0.9383, allocations: 40.5 kB / 0.9711 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.9396, allocations: 0.7611 MB / 0.9719 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.94, allocations: 0.7708 MB / 0.9726 GB, free: 9.328 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001962/0.9403, allocations: 56.34 kB / 0.9727 GB, free: 9.309 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.892e-05/0.9403, allocations: 26.77 kB / 0.9727 GB, free: 9.293 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/0.9403, allocations: 0 / 0.9727 GB, free: 9.293 MB / 0.7325 GB Notification: Performance of Templates: time 0.007439/0.9478, allocations: 2.552 MB / 0.9752 GB, free: 8.039 MB / 0.7325 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/jenkins/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