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.0009473/0.0009473, allocations: 90.28 kB / 15.36 MB, free: 0.7383 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.00749/0.00749, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.443/1.443, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.527/2.527, allocations: 390.9 MB / 0.6663 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.0003921, allocations: 8.188 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8153/0.8157, allocations: 142.4 MB / 0.955 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003873/0.8196, allocations: 2.769 MB / 0.9578 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003105/0.8227, allocations: 1.695 MB / 0.9594 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002966/0.8231, allocations: 8.062 kB / 0.9594 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000265/0.8234, allocations: 31.84 kB / 0.9594 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.8244, allocations: 204.8 kB / 0.9596 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009226/0.8254, allocations: 162.3 kB / 0.9598 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009191/0.8263, allocations: 473.3 kB / 0.9602 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00129/0.8276, allocations: 0.5232 MB / 0.9608 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004304/0.8281, allocations: 107.8 kB / 0.9609 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006879/0.8288, allocations: 153.1 kB / 0.961 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.532e-05/0.8288, allocations: 10.56 kB / 0.961 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008903/0.8297, allocations: 291.3 kB / 0.9613 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002077/0.83, allocations: 91.89 kB / 0.9614 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002796/0.8303, allocations: 131.1 kB / 0.9615 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0009743/0.8312, allocations: 425.7 kB / 0.9619 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.8313, allocations: 0 / 0.9619 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.655e-06/0.8313, allocations: 0 / 0.9619 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.8313, allocations: 0 / 0.9619 GB, free: 2.676 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.001242/0.8325, allocations: 0.5052 MB / 0.9624 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.794e-05/0.8326, allocations: 9.219 kB / 0.9624 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009018/0.8335, allocations: 93.55 kB / 0.9625 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003649/0.8339, allocations: 256.2 kB / 0.9627 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.8339, allocations: 17.44 kB / 0.9628 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.8341, allocations: 25.34 kB / 0.9628 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007366/0.8348, allocations: 374.5 kB / 0.9631 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.8349, allocations: 1.375 kB / 0.9631 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-05/0.8349, allocations: 10.38 kB / 0.9632 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001138/0.835, allocations: 28.41 kB / 0.9632 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005405/0.8356, allocations: 310.7 kB / 0.9635 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.8373, allocations: 1.529 MB / 0.965 GB, free: 40 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.8378, allocations: 233.5 kB / 0.9652 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.838, allocations: 120 kB / 0.9653 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.8382, allocations: 87.47 kB / 0.9654 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.8382, allocations: 39.97 kB / 0.9654 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=18): time 1.783e-06/0.8382, allocations: 0 / 0.9654 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.001519/0.8398, allocations: 0.7835 MB / 0.9662 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.8398, allocations: 52.75 kB / 0.9662 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.8401, allocations: 197.8 kB / 0.9664 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.8401, allocations: 26.7 kB / 0.9665 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.8403, allocations: 159.7 kB / 0.9666 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.12e-05/0.8403, allocations: 79.89 kB / 0.9667 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-05/0.8404, allocations: 33.58 kB / 0.9667 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.8405, allocations: 326.8 kB / 0.967 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/0.8408, allocations: 117.3 kB / 0.9671 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002736/0.841, allocations: 168.1 kB / 0.9673 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004742/0.8415, allocations: 302.5 kB / 0.9676 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.8415, allocations: 1 kB / 0.9676 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008705/0.8424, allocations: 419.4 kB / 0.968 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.8424, allocations: 7.906 kB / 0.968 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.8425, allocations: 1.656 kB / 0.968 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004755/0.8429, allocations: 102.1 kB / 0.9681 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.8432, allocations: 57.83 kB / 0.9682 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.8453, allocations: 1.735 MB / 0.9699 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.8456, allocations: 15.2 kB / 0.9699 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.8457, allocations: 11.41 kB / 0.9699 GB, free: 12.07 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 (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.0002267/0.8459, allocations: 157.6 kB / 0.97 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/0.846, allocations: 20.69 kB / 0.97 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005844/0.8465, allocations: 296.7 kB / 0.9703 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.8466, allocations: 2.156 kB / 0.9703 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.8466, allocations: 0.75 kB / 0.9703 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.8466, allocations: 0 / 0.9703 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.8476, allocations: 0.7083 MB / 0.971 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.8477, allocations: 1.188 kB / 0.971 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003138/0.848, allocations: 53.86 kB / 0.9711 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.848, allocations: 2.719 kB / 0.9711 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.848, allocations: 6.438 kB / 0.9711 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.733e-06/0.848, allocations: 5.047 kB / 0.9711 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.848, allocations: 5.188 kB / 0.9711 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007058/0.8488, allocations: 0.5144 MB / 0.9716 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.8489, allocations: 115.7 kB / 0.9717 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.849, allocations: 6.281 kB / 0.9717 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.8491, allocations: 17.48 kB / 0.9717 GB, free: 10.67 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/0.8492, allocations: 10.64 kB / 0.9717 GB, free: 10.67 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.8492, allocations: 8.906 kB / 0.9718 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001554/0.8494, allocations: 143.1 kB / 0.9719 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8494, allocations: 4.062 kB / 0.9719 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004688/0.8499, allocations: 66.16 kB / 0.972 GB, free: 10.54 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 (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.0002106/0.8501, allocations: 111.7 kB / 0.9721 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008853/0.851, allocations: 424.6 kB / 0.9725 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.851, allocations: 4.125 kB / 0.9725 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002032/0.8512, allocations: 119.8 kB / 0.9726 GB, free: 10.13 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.8517, allocations: 35.97 kB / 0.9726 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.8533, allocations: 0.767 MB / 0.9734 GB, free: 9.531 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004392/0.8537, allocations: 0.7787 MB / 0.9741 GB, free: 8.785 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002093/0.8539, allocations: 56.09 kB / 0.9742 GB, free: 8.762 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.719e-05/0.854, allocations: 19.56 kB / 0.9742 GB, free: 8.754 MB / 0.7325 GB Notification: Performance of SimCode: time 6.31e-07/0.854, allocations: 0 / 0.9742 GB, free: 8.754 MB / 0.7325 GB Notification: Performance of Templates: time 0.007488/0.8615, allocations: 2.638 MB / 0.9768 GB, free: 7.453 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