Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_10_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.0007772/0.0007772, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005542/0.005542, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.274/1.274, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.431/2.431, allocations: 437.8 MB / 0.7121 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003705/0.0003706, allocations: 8 kB / 0.8729 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5998/0.6001, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003402/0.6036, allocations: 2.766 MB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002345/0.606, allocations: 1.706 MB / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.95e-05/0.6061, allocations: 0 / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.6062, allocations: 39.7 kB / 1.028 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004203/0.6067, allocations: 199.2 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.607, allocations: 175.7 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.6074, allocations: 458.8 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007963/0.6082, allocations: 0.5241 MB / 1.029 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.6084, allocations: 103.6 kB / 1.029 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.6087, allocations: 147.5 kB / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.6087, allocations: 15.94 kB / 1.029 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003618/0.6091, allocations: 287.5 kB / 1.029 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.6092, allocations: 95.7 kB / 1.029 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.6093, allocations: 141.1 kB / 1.03 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003983/0.6097, allocations: 424.9 kB / 1.03 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.6097, allocations: 0 / 1.03 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.492e-06/0.6097, allocations: 0 / 1.03 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.6097, allocations: 0 / 1.03 GB, free: 8.777 MB / 0.7794 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.0007305/0.6105, allocations: 0.4952 MB / 1.03 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.6105, allocations: 12.03 kB / 1.031 GB, free: 8.219 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.007e-05/0.6106, allocations: 62.73 kB / 1.031 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006792/0.6113, allocations: 92.55 kB / 1.031 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.6115, allocations: 263.8 kB / 1.031 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.6115, allocations: 12.81 kB / 1.031 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.504e-05/0.6116, allocations: 28.55 kB / 1.031 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/0.6121, allocations: 372.9 kB / 1.031 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.6122, allocations: 4 kB / 1.031 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.6122, allocations: 11.98 kB / 1.031 GB, free: 7.324 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.991e-05/0.6123, allocations: 32.41 kB / 1.031 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004252/0.6127, allocations: 301.5 kB / 1.032 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.6142, allocations: 1.533 MB / 1.033 GB, free: 5.312 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.6146, allocations: 230.3 kB / 1.033 GB, free: 5.078 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.6148, allocations: 116.8 kB / 1.033 GB, free: 4.961 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.6149, allocations: 81.11 kB / 1.034 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.992e-05/0.6149, allocations: 42.5 kB / 1.034 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.222e-06/0.615, allocations: 4 kB / 1.034 GB, free: 4.809 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001082/0.616, allocations: 0.7855 MB / 1.034 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.6161, allocations: 59.34 kB / 1.034 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.6162, allocations: 203.2 kB / 1.035 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.6163, allocations: 25.7 kB / 1.035 GB, free: 3.664 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.158e-05/0.6164, allocations: 159.8 kB / 1.035 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.17e-05/0.6164, allocations: 78.92 kB / 1.035 GB, free: 3.426 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-05/0.6165, allocations: 33.7 kB / 1.035 GB, free: 3.387 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.6166, allocations: 326.8 kB / 1.035 GB, free: 3.059 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.6167, allocations: 111.9 kB / 1.035 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.6169, allocations: 169.9 kB / 1.035 GB, free: 2.762 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.6173, allocations: 291.8 kB / 1.036 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.6173, allocations: 4 kB / 1.036 GB, free: 2.453 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006839/0.618, allocations: 421.2 kB / 1.036 GB, free: 2.035 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.618, allocations: 4 kB / 1.036 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.618, allocations: 0 / 1.036 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003757/0.6184, allocations: 100.9 kB / 1.036 GB, free: 1.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002271/0.6186, allocations: 59.83 kB / 1.036 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/0.6202, allocations: 1.742 MB / 1.038 GB, free: 15.99 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002067/0.6204, allocations: 19.92 kB / 1.038 GB, free: 15.98 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.6205, allocations: 8 kB / 1.038 GB, free: 15.97 MB / 0.795 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.0001303/0.6206, allocations: 157.7 kB / 1.038 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.6207, allocations: 19.81 kB / 1.038 GB, free: 15.79 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004414/0.6211, allocations: 299.3 kB / 1.038 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.6211, allocations: 4 kB / 1.038 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-06/0.6211, allocations: 0 / 1.038 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.6211, allocations: 0 / 1.038 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007775/0.6219, allocations: 0.7076 MB / 1.039 GB, free: 14.72 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.6219, allocations: 0 / 1.039 GB, free: 14.72 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/0.6222, allocations: 55.89 kB / 1.039 GB, free: 14.66 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.6222, allocations: 4 kB / 1.039 GB, free: 14.66 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.6223, allocations: 7.938 kB / 1.039 GB, free: 14.65 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.6223, allocations: 4 kB / 1.039 GB, free: 14.65 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6223, allocations: 3.938 kB / 1.039 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005437/0.6228, allocations: 0.5177 MB / 1.04 GB, free: 14.11 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.653e-05/0.6229, allocations: 120.8 kB / 1.04 GB, free: 13.97 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.623, allocations: 0 / 1.04 GB, free: 13.97 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.6231, allocations: 19.92 kB / 1.04 GB, free: 13.95 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.18e-05/0.6232, allocations: 11.98 kB / 1.04 GB, free: 13.94 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.6232, allocations: 8 kB / 1.04 GB, free: 13.93 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001127/0.6233, allocations: 144 kB / 1.04 GB, free: 13.79 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6233, allocations: 4 kB / 1.04 GB, free: 13.78 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003199/0.6236, allocations: 68.06 kB / 1.04 GB, free: 13.71 MB / 0.795 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.0007784/0.6244, allocations: 1.057 MB / 1.041 GB, free: 12.63 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006076/0.625, allocations: 436.7 kB / 1.042 GB, free: 12.19 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.6251, allocations: 0 / 1.042 GB, free: 12.19 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.6252, allocations: 115.9 kB / 1.042 GB, free: 12.08 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.6256, allocations: 33.22 kB / 1.042 GB, free: 12.05 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.6289, allocations: 3.026 MB / 1.045 GB, free: 8.879 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.6292, allocations: 0.7714 MB / 1.045 GB, free: 8.082 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00016/0.6294, allocations: 57.89 kB / 1.045 GB, free: 8.027 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.6295, allocations: 67.41 kB / 1.046 GB, free: 7.961 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.6295, allocations: 0 / 1.046 GB, free: 7.961 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.6459, allocations: 4.681 MB / 1.05 GB, free: 3.5 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002572/0.6462, allocations: 237 kB / 1.05 GB, free: 3.25 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/2.333, allocations: 1.406 kB / 1.05 GB, free: 3.25 MB / 0.795 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches