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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001643/0.001648, allocations: 108 kB / 15.6 MB, free: 132 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.001952/0.001952, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.289/2.289, allocations: 390.2 MB / 0.6647 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 56.09 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5986/0.6007, allocations: 140.4 MB / 0.9497 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004416/0.6052, allocations: 3.08 MB / 0.9527 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002477/0.6077, allocations: 1.725 MB / 0.9544 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.6079, allocations: 8.062 kB / 0.9544 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009747/0.6089, allocations: 324 kB / 0.9547 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004061/0.6093, allocations: 212.7 kB / 0.9549 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.6097, allocations: 183 kB / 0.9551 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002905/0.61, allocations: 318.2 kB / 0.9554 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003678/0.6103, allocations: 247 kB / 0.9556 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.6105, allocations: 134.9 kB / 0.9558 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003014/0.6108, allocations: 157.5 kB / 0.9559 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.369e-05/0.6109, allocations: 21.19 kB / 0.9559 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003849/0.6112, allocations: 240.1 kB / 0.9562 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.6114, allocations: 107.9 kB / 0.9563 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.6115, allocations: 119.8 kB / 0.9564 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004733/0.612, allocations: 427.4 kB / 0.9568 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.612, allocations: 4 kB / 0.9568 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.313e-06/0.612, allocations: 1.562 kB / 0.9568 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.612, allocations: 0 / 0.9568 GB, free: 3.953 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.0008214/0.6128, allocations: 0.5452 MB / 0.9573 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.6129, allocations: 9.562 kB / 0.9573 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.255e-05/0.6129, allocations: 63.06 kB / 0.9574 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000707/0.6136, allocations: 92.14 kB / 0.9575 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.6139, allocations: 260.8 kB / 0.9577 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.6139, allocations: 18.44 kB / 0.9578 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.308e-05/0.614, allocations: 19.69 kB / 0.9578 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004894/0.6145, allocations: 375.1 kB / 0.9581 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.6145, allocations: 0 / 0.9581 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.6146, allocations: 15.42 kB / 0.9582 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.665e-05/0.6147, allocations: 32.53 kB / 0.9582 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004417/0.6151, allocations: 305.9 kB / 0.9585 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001391/0.6165, allocations: 1.528 MB / 0.96 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/0.6169, allocations: 229.9 kB / 0.9602 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.6171, allocations: 115 kB / 0.9603 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001137/0.6172, allocations: 87.31 kB / 0.9604 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.811e-05/0.6172, allocations: 44.25 kB / 0.9604 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.302e-06/0.6172, allocations: 0 / 0.9604 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.00112/0.6184, allocations: 0.7883 MB / 0.9612 GB, free: 344 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.6184, allocations: 61.69 kB / 0.9613 GB, free: 272 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.6186, allocations: 193 kB / 0.9614 GB, free: 120 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.6186, allocations: 30.83 kB / 0.9615 GB, free: 84 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.6188, allocations: 163.7 kB / 0.9616 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.643e-05/0.6188, allocations: 64.48 kB / 0.9617 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.619, allocations: 62.56 kB / 0.9617 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.6191, allocations: 327.1 kB / 0.9621 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.6193, allocations: 121.9 kB / 0.9622 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.6196, allocations: 167.5 kB / 0.9623 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004573/0.62, allocations: 300 kB / 0.9626 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.6201, allocations: 0 / 0.9626 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007535/0.6208, allocations: 415.2 kB / 0.963 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.6208, allocations: 9.219 kB / 0.963 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.6209, allocations: 2.906 kB / 0.963 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003997/0.6213, allocations: 94.23 kB / 0.9631 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002575/0.6215, allocations: 57.55 kB / 0.9632 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/0.6235, allocations: 1.88 MB / 0.965 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.6237, allocations: 19.58 kB / 0.965 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.6237, allocations: 8.406 kB / 0.965 GB, free: 13.12 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.0001483/0.6239, allocations: 156.2 kB / 0.9652 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.1e-05/0.6239, allocations: 20.66 kB / 0.9652 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000486/0.6244, allocations: 297.8 kB / 0.9655 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.6244, allocations: 2.188 kB / 0.9655 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.6245, allocations: 0 / 0.9655 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.6245, allocations: 3.938 kB / 0.9655 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008724/0.6253, allocations: 0.6995 MB / 0.9662 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.6254, allocations: 1.344 kB / 0.9662 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003134/0.6257, allocations: 65.58 kB / 0.9662 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.6257, allocations: 6.156 kB / 0.9662 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.6257, allocations: 10.25 kB / 0.9663 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-05/0.6257, allocations: 5.203 kB / 0.9663 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6257, allocations: 0.9375 kB / 0.9663 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006132/0.6264, allocations: 0.5141 MB / 0.9668 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.6265, allocations: 118.9 kB / 0.9669 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.6265, allocations: 7.375 kB / 0.9669 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.6267, allocations: 13.42 kB / 0.9669 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.759e-05/0.6267, allocations: 10.55 kB / 0.9669 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.6268, allocations: 4.375 kB / 0.9669 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001293/0.6269, allocations: 147.6 kB / 0.967 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6269, allocations: 8 kB / 0.9671 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003725/0.6273, allocations: 62 kB / 0.9671 GB, free: 11.59 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.0009073/0.6282, allocations: 1.056 MB / 0.9681 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007476/0.629, allocations: 446.4 kB / 0.9686 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.629, allocations: 0 / 0.9686 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.6291, allocations: 125.5 kB / 0.9687 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.6295, allocations: 39.06 kB / 0.9687 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.6332, allocations: 2.875 MB / 0.9715 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.6336, allocations: 0.77 MB / 0.9723 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001745/0.6338, allocations: 56.56 kB / 0.9723 GB, free: 7.398 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.6339, allocations: 74.31 kB / 0.9724 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.6339, allocations: 1.188 kB / 0.9724 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.6572, allocations: 5.008 MB / 0.9773 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.996/10.65, allocations: 16.5 kB / 0.9773 GB, free: 4.887 MB / 0.7325 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv","/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