Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_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.0009425/0.0009426, allocations: 91.14 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.005929/0.00593, allocations: 172.9 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.307/1.307, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.561/2.561, allocations: 462.6 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 8.969 kB / 0.9029 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2954, allocations: 159.6 MB / 1.059 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003578/0.299, allocations: 2.772 MB / 1.061 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00259/0.3016, allocations: 1.699 MB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.3018, allocations: 4 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.302, allocations: 35.7 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000581/0.3026, allocations: 203.2 kB / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005237/0.3031, allocations: 171.6 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005144/0.3036, allocations: 462.8 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008987/0.3046, allocations: 0.5241 MB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.3048, allocations: 107.6 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003606/0.3052, allocations: 151.4 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.228e-05/0.3052, allocations: 12 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004958/0.3057, allocations: 287.4 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.3058, allocations: 95.7 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.306, allocations: 129.1 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005491/0.3065, allocations: 426.9 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3065, allocations: 0 / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3065, allocations: 0 / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.448e-06/0.3066, allocations: 4 kB / 1.066 GB, free: 13.76 MB / 0.8262 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.0008787/0.3074, allocations: 0.4952 MB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3075, allocations: 11.97 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.128e-05/0.3076, allocations: 62.73 kB / 1.066 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007483/0.3083, allocations: 96.45 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000319/0.3087, allocations: 259.9 kB / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.3087, allocations: 12.81 kB / 1.067 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.774e-05/0.3088, allocations: 28.47 kB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005645/0.3094, allocations: 376.9 kB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.3094, allocations: 4 kB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/0.3094, allocations: 7.984 kB / 1.067 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.361e-05/0.3095, allocations: 32.41 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004694/0.31, allocations: 309.5 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/0.3117, allocations: 1.529 MB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000403/0.3121, allocations: 235.3 kB / 1.069 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.3123, allocations: 116.8 kB / 1.069 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001318/0.3124, allocations: 89.09 kB / 1.069 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.3125, allocations: 30.56 kB / 1.069 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 3.366e-06/0.3125, allocations: 4 kB / 1.069 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001201/0.3137, allocations: 0.7899 MB / 1.07 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.3137, allocations: 59.33 kB / 1.07 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.3139, allocations: 203 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.3139, allocations: 29.7 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.392e-05/0.314, allocations: 151.9 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.216e-05/0.3141, allocations: 78.92 kB / 1.071 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.594e-05/0.3142, allocations: 29.7 kB / 1.071 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.771e-05/0.3143, allocations: 334.8 kB / 1.071 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.3144, allocations: 115.9 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.3146, allocations: 161.9 kB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003627/0.315, allocations: 295.8 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.315, allocations: 0 / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007272/0.3157, allocations: 418.6 kB / 1.072 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.3158, allocations: 11.94 kB / 1.072 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3158, allocations: 0 / 1.072 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003924/0.3162, allocations: 96.89 kB / 1.072 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002399/0.3164, allocations: 55.95 kB / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/0.3181, allocations: 1.734 MB / 1.074 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.3184, allocations: 19.95 kB / 1.074 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.3184, allocations: 12 kB / 1.074 GB, free: 4.949 MB / 0.8262 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.0001504/0.3185, allocations: 158.6 kB / 1.074 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.3186, allocations: 15.81 kB / 1.074 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004635/0.3191, allocations: 300.6 kB / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3191, allocations: 4 kB / 1.074 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-06/0.3191, allocations: 0 / 1.074 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3191, allocations: 0 / 1.074 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008573/0.32, allocations: 0.7041 MB / 1.075 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.32, allocations: 8 kB / 1.075 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.3203, allocations: 59.89 kB / 1.075 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3203, allocations: 0 / 1.075 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.3203, allocations: 11.98 kB / 1.075 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3203, allocations: 0 / 1.075 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3203, allocations: 7.938 kB / 1.075 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005668/0.3209, allocations: 0.518 MB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.392e-05/0.321, allocations: 112.9 kB / 1.076 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.257e-05/0.321, allocations: 4 kB / 1.076 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.3212, allocations: 15.92 kB / 1.076 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.3213, allocations: 15.98 kB / 1.076 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.3213, allocations: 8.062 kB / 1.076 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001222/0.3214, allocations: 144.1 kB / 1.076 GB, free: 2.766 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3214, allocations: 0 / 1.076 GB, free: 2.766 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003445/0.3218, allocations: 64 kB / 1.076 GB, free: 2.703 MB / 0.8262 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.000846/0.3226, allocations: 1.07 MB / 1.077 GB, free: 1.598 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006823/0.3233, allocations: 429.6 kB / 1.077 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3233, allocations: 0 / 1.077 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.3235, allocations: 119.9 kB / 1.077 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.3239, allocations: 32.44 kB / 1.077 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003585/0.3275, allocations: 3.007 MB / 1.08 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.3278, allocations: 0.783 MB / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001698/0.328, allocations: 53.92 kB / 1.081 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.3281, allocations: 67.41 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of SimCode: time 3.61e-07/0.3281, allocations: 0 / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01613/0.3443, allocations: 4.682 MB / 1.086 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.3445, allocations: 243.5 kB / 1.086 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.024, allocations: 4.062 kB / 1.086 GB, free: 8.238 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches